Text & WritingTool 04
Line Sorter
Put a list in order without opening a spreadsheet. Numbers sort naturally, so item 2 comes before item 10.
Sort lines
14 / 232Result
WaitingRun the tool and the result appears here. Copy it or download it — nothing leaves this tab.
Privacy
Everything you type stays in this tab and is processed by JavaScript on your device. Nothing is uploaded, logged or stored on a server.
How to use it
Paste the list you want to order, one item per line.
Leave Ignore case on for a dictionary-style sort, or turn it off to group capitals first.
Copy the sorted list from the result panel.
When to use it
Glossaries
Alphabetise a term list before adding it to documentation.
File inventories
Order filenames so numbering reads naturally.
Checklists
Sort tasks or names into a predictable order.
Questions
Is the sort numeric-aware?
Yes. Runs of digits are compared by value, so item 2 sorts before item 10.
Are blank lines kept?
No. Empty lines are removed before sorting.
Can I sort in reverse?
Not in this version. Sort ascending, then reverse the list with the reverse-line operation.
How does natural sorting order item 2 before item 10?
Digit runs are compared as numbers rather than character by character, so item-2 precedes item-10. Plain alphabetical sorting would put item-10 first, which is the usual complaint about sorted file lists.
Can I sort case-insensitively?
Yes, and it matters for mixed lists where uppercase names would otherwise clump together. Case-insensitive sorting compares letters only, while the original casing is preserved in the output.