Web
Text line sorter
Put pasted lines in a useful order without uploading your text.
Sorts whole lines and keeps duplicate lines. Natural sorting places “Page 2” before “Page 10”. Results can vary slightly by browser language.
Worked example
Put numbered page labels in order.
Example input
Page 10 Page 2 Page 1
Expected result
Natural ascending order gives Page 1, Page 2, Page 10.
Before using your result
Sorting preserves duplicates. Use the duplicate-line remover separately if repeated entries are unwanted.
How this works
Choose alphabetical ascending, descending or shortest-first sorting. Natural number comparison helps order numbered labels.
Whole lines are moved as units. Duplicates are retained; use the duplicate line remover if you need unique entries.
For text up to 1 million characters. Alphabetical order follows browser locale.
Questions
Does it remove duplicates?+–
No. Every input line remains in the output.
How are numbers sorted?+–
Natural sorting usually puts 2 before 10 when they appear in otherwise similar labels.
Is the text uploaded?+–
No. Sorting runs in your browser.
