Text Sorter – Sort Lines Alphabetically
Sort a list alphabetically, by number, by length or at random. Paste one item per line.
How to use the Text Sorter
- Paste your listPaste names, keywords, numbers or any list with one item per line.
- Choose the orderSort A–Z or Z–A, by number, by length, reverse the list, or shuffle it randomly.
- Copy the resultRemove duplicates or empty lines if needed, then copy the sorted list.
Example
item 10, item 2, item 1 sorts to item 1, item 2, item 10: numbers inside text are sorted by value, not digit by digit.
A → Z puts Apple and apple next to each other. Tick “Remove duplicates” to keep only one.
Frequently asked questions
Why is “item 10” after “item 2”?
The sorter uses natural order, which compares numbers by their value. Simple sorting would put “item 10” before “item 2” because 1 comes before 2.
Does it sort accented letters and other languages correctly?
Yes. It uses your browser’s language rules, so letters like é, ñ and ü sort where a reader expects, and other scripts sort in their own alphabet order.
Is the random shuffle fair?
Yes. It uses the Fisher–Yates method with your browser’s secure random numbers, so every order is equally likely.