Sort Lines Alphabetically
Paste lines below to sort them A→Z or Z→A. Numeric-aware ordering sorts item2 before item10, the way humans expect.
Frequently asked questions
How are numbers in lines sorted?
Natural ordering is used, so file2 comes before file10. A plain character-by-character sort would put file10 first because 1 sorts before 2.
Can I sort and de-duplicate at once?
Sort here first, then run the result through the Remove Duplicate Lines tool — or the other way round; both tools preserve their guarantees.
Does sorting handle accented characters?
Yes — locale-aware comparison places é next to e rather than after z, following Unicode collation rules.