Sort Lines: Alphabetical, Numerical, and Reverse Order
Sorting lists alphabetically or numerically is one of the most common text-cleanup tasks. This tool sorts pasted lines and lets you choose direction (ascending/descending), case-handling, and natural number ordering.
Default sorting is character-by-character left-to-right. That's correct for most use cases but produces strange results with numbers β '10' sorts before '2' because '1' < '2' character-wise. Natural sort fixes this by treating embedded numbers as numbers, putting '2' before '10' as expected.
Sort options
- β’Alphabetical (case-sensitive) β uppercase letters sort before lowercase
- β’Alphabetical (case-insensitive) β most common everyday sort
- β’Reverse β Z to A or large to small
- β’Natural sort β '2' before '10', for filenames with numbers
- β’Sort by length β shortest first or longest first
Extended FAQ
How does it handle Korean characters?
Korean sorts by Unicode order, which matches the modern Hangul (νκΈ) alphabetical order. So κ° < λ < λ€, etc., as expected.
Does it remove duplicates?
Sorting itself doesn't remove duplicates. Use the dedup tool first if you want unique sorted output.
Are my pasted lines stored?
No β runs entirely in your browser.
