Home›Text Tools› Sort linesBrowser
Sort a list of lines alphabetically
Sorts lines alphabetically, optionally using natural number ordering so that item2 comes before item10 rather than after it.
How to use it
- 1Paste your list into the input box, one item per line.
- 2Pick A → Z or Z → A.
- 3Turn on natural number order if your lines contain numbers.
- 4Copy the sorted list from the Output box.
Frequently asked questions
- What does natural number order do?
- It compares digits as numbers rather than as characters, so item2 lands before item10. Plain alphabetical order puts item10 first, because the character "1" sorts before "2" — the usual reason a sorted list of file names looks scrambled.
- How are accented and non-English letters sorted?
- With the browser's own locale-aware comparison, so á sits next to a rather than after z. That matches how a dictionary in your language orders words, which byte-order sorting does not.
- Are blank lines and duplicates removed?
- No. Sorting only reorders, so what goes in comes out. Run the text through the duplicate remover first if you want a list that is both sorted and unique.