Sort List
Sort a list of lines alphabetically, by length, or numerically, with optional dedupe, trim, and reverse. Runs in your browser.
How to sort a list
- Paste your list into the Lines box, one item per line.
- Set “Sort by” to Alphabetical, Line length, or Numeric, and “Order” to Ascending or Descending.
- Turn on Case-insensitive, Remove duplicates, or Trim whitespace as needed. “Reverse result” flips the whole list after sorting.
- The sorted list updates live in the Sorted box. Copy it, or Clear to start again.
When to use it
It tidies any line-based list: names, tags, import statements, a column pasted one value per line. Combining Remove duplicates with Trim whitespace cleans up a list stitched together from several sources, where the same entry appears with inconsistent spacing.
Numeric mode compares by value, so 2 comes before 10 instead of after it the way plain text sorting would put it. Line length is handy for spotting outliers in a list that should be uniform, like codes that are all meant to be the same width.
Frequently asked questions
Is my list sent to a server?
No. Sorting runs entirely in your browser as you type, and your list is never uploaded or stored.
What sort modes are available?
Alphabetical, by line length, and numeric, each ascending or descending, with an optional case-insensitive comparison.
How does numeric sorting handle lines that aren’t numbers?
Lines that don’t parse as numbers always sort to the end, in both ascending and descending order. Numeric lines, including decimals and negatives, are compared by value.
What does “Remove duplicates” treat as a duplicate?
Lines with identical text; only the first occurrence is kept. With “Case-insensitive” on, lines differing only in letter case count as duplicates too, and with “Trim whitespace” on, surrounding whitespace is ignored.
What’s the difference between descending order and “Reverse result”?
Descending changes the comparison itself, while reverse flips the final list after sorting. In numeric mode they can differ: non-numeric lines stay last in descending order but end up first after a reverse.