Sort Lines
Sort Lines puts any pasted list in order: alphabetically A to Z or Z to A, shortest line first, numerically by the number each line starts with, reversed exactly as-is, or shuffled for a random draw. It is the missing sort button for text that lives outside a spreadsheet — playlists, names, tags, raffle entries, to-do lists. Case-insensitive sorting is the default because that is how humans expect lists to read.
How to use Sort Lines
- Paste your list into the box, one item per line.
- Pick a sort mode: A to Z, Z to A, by length, numeric, reverse, or shuffle.
- If the exact order matters, press the re-run button to shuffle again or re-apply the sort.
- Copy the ordered list from the result box.
Supported behavior
- Alphabetical sorts compare whole lines and ignore case unless you switch case-sensitive matching on.
- Numeric sort reads the first number in each line; lines without a number keep their relative order at the end.
- Reverse simply flips the current order — it is not the same as Z to A.
Best for
- Alphabetizing name, tag and keyword lists.
- Drawing winners by shuffling an entry list.
- Checking data quality by grouping the shortest or longest lines.
Limits
- Sorting is line-based; multi-line records (like addresses) will be torn apart — sort those in a spreadsheet instead.
- Numeric sort understands plain numbers like 42 and 3.5, not formatted ones like '1,000' or currency amounts.
Privacy notes
- Processing happens entirely in your browser, so nothing you paste here is sent anywhere.
- Your list is sorted on your device; it is never sent anywhere.
Related tools
Sort Lines FAQ
What is the difference between Reverse and Z to A?
Z to A sorts by content in descending order. Reverse ignores content completely and flips your list upside down — the last line becomes the first.
How does numeric sort handle lines without numbers?
They keep their original relative order and are placed after all the numbered lines, so nothing is ever dropped.
Is the shuffle really random?
Yes — it uses the browser's cryptographic random source with a Fisher-Yates shuffle, so every ordering is equally likely. Press re-run for a fresh draw.