Sort Lines
Alphabetical, numeric, length or reverse sorting
Four different meanings of sorted, and picking the wrong one is the usual reason a sorted list looks wrong. Alphabetical uses a locale-aware comparison, so capitals, accents and punctuation are handled the way a dictionary would rather than by raw character code. Numeric ignores everything except digits, a decimal point and a minus sign, which is what you want for a list like item 2, item 10, item 33 — string sorting would put item 10 before item 2. Length order is by character count. Shuffle is a genuine randomisation with no seed, so re-running it gives a different order. Descending and unique filters are available where they make sense, and the numeric, length and shuffle orders skip blank lines entirely. The same dropdown also carries the deduplication and line-removal operations.
Sort lines alphabetically, numerically, by length, in reverse or shuffled — with case-insensitive and unique options. Ideal for lists, spreadsheets, code imports and keyword lists.
Private Sort Lines In Your Browser
Sort Lines is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use Sort Lines
Paste your list into the Input box; the number of non-empty lines shows under the label.
Choose the order from the Operation dropdown — alphabetical, numeric, by length or shuffle.
Tick Descending to reverse any of the three orders, or Unique only to collapse repeats first.
Read the ordered list from the Result panel and copy it.
- Alphabetical, numeric, by-length and random orders from one dropdown
- Locale-aware alphabetical comparison rather than raw character codes
- Ascending or descending, plus a unique-only filter applied before ordering
- Blank lines dropped by the numeric, length and shuffle orders
- A developer ordering a list of version numbers that are padded with text, such as release 9 and release 10.
- A researcher alphabetising interview participants by surname before anonymising them.
- A teacher demonstrating the difference between alphabetical and numeric ordering to a class.