About this tool
Sort any list, one item per line. Paste names, words, file names, versions or numbers and get them back in order. The sort follows your language’s alphabet rules, so accented letters such as É sort next to E instead of after Z.
Sort modes
- Natural (default): numbers inside text are compared by value, so
item 2comes beforeitem 10. This is how file managers sort, and usually what people expect. - Alphabetical: strict character-by-character order, where
item 10comes beforeitem 2. - Number: sorts by the first number in each line, so
price 99,price 1,200sort by value. Lines without a number go last. - Length: shortest line first (or longest, with Z → A).
- Reverse order: flips the list without sorting it.
- Shuffle: random order, using your browser’s cryptographic random generator, which is handy for draws or randomizing a list.
With Case-sensitive off, apple and Apple sort together. Turn on Remove duplicates for a sorted list of unique lines, like sort -u. The sort is stable, so equal lines keep their relative order.
FAQ
How do I sort lines alphabetically?
Paste the lines and choose Alphabetical or Natural, A → Z. The sorted list appears instantly.
Why does “10” come before “2” in some sorts?
A plain alphabetical sort compares character by character, and “1” comes before “2”. Natural sort compares numbers by value, so 2 comes before 10.
Can I sort in reverse (Z to A)?
Yes. Choose Z → A for descending order, or “Reverse order” to flip the list without sorting.
How do I shuffle lines randomly?
Choose Shuffle. Each click on the options re-shuffles the list.
Can I remove duplicates while sorting?
Yes. Turn on Remove duplicates to keep one copy of each line.