Sort Lines
Sort text alphabetically, numerically, by length or at random.
Sorted lines
Paste some lines on the left.
About Sort Lines
Sorting a list is the fastest way to spot gaps, duplicates and outliers. Doing it in a spreadsheet means importing and exporting; doing it in an editor means remembering the right command.
This tool sorts pasted text alphabetically, numerically, by line length or randomly, in ascending or descending order, with case sensitivity and natural number handling as options.
Frequently asked questions
What is natural sorting?
It compares embedded numbers by value, so item2 sorts before item10 instead of after it.
How are blank lines handled?
They can be removed before sorting, or kept and grouped at the end - it is a toggle.
Is the sort stable?
Yes. Lines that compare as equal keep their original relative order.