Sort Lines
Sort text lines
What it does
Four Sort Orders
A to Z, Z to A, numeric smallest first, and numeric largest first.
Locale-Aware Text Order
Uses your browser's collation, so accented and non-Latin letters sort sensibly, not by raw character codes.
Stable and Non-Destructive
Equal lines keep their order and duplicates are kept. Only empty lines can be removed, if you ask.
Private by Design
Everything is computed in your browser. Your list is never uploaded or stored.
Frequently asked questions
Is my text sent to a server?
No. The lines are sorted in your browser. Nothing is uploaded or stored. The page does download the code needed to run the tool.
How does numeric sorting work?
Each line is sorted by the number at its start (for example "10 apples" sorts as 10). Lines that do not start with a number go last, in their original order. Thousands separators are not supported.
What does case sensitive mean here?
Off (the default): Apple and apple are equal and keep their original order. On: they are different, with lowercase before uppercase of the same letter.
Does it remove duplicate lines?
No. Duplicates are kept and end up next to each other. Use Remove Duplicate Lines if you want them removed.