Free Online Line Sorter - Sort Text Lines Alphabetically, Numerically & More
The Delimiter.site Sort Lines tool reorders any list of text lines in six different ways - alphabetically, reverse-alphabetically, numerically, reverse-numerically, in reverse order, or randomly shuffled - all in real time with a single click. No spreadsheet, no script, no setup required.
The Six Sort Modes Explained
A → Z (Alphabetical Ascending)
Sorts lines in standard dictionary order from A to Z. Uses locale-aware comparison
(localeCompare) so accented characters sort in the correct position relative
to their base letter. This is the most common sort for names, keywords, and labels.
Z → A (Alphabetical Descending)
The reverse of A → Z. Sorts lines from Z to A. Useful when you need to present items in reverse alphabetical order, or to quickly identify the last entries in a dataset.
1 → 9 (Numeric Ascending)
Treats each line as a number and sorts from smallest to largest. Lines that are not numeric
are placed at the end. The sort uses parseFloat, so it handles integers,
decimals, and negative numbers correctly - unlike a plain text sort where
10 would sort before 9.
9 → 1 (Numeric Descending)
The same numeric comparison as above, but sorted from largest to smallest. Useful for finding the highest values at the top - rankings, scores, prices, or statistics.
Reverse Order
Flips the current order of lines without any sorting logic - the last line becomes the first, the second-to-last becomes the second, and so on. Use this to reverse a numbered list, flip a timeline, or undo a sort without changing the relative grouping.
Shuffle
Randomises the order of all lines using a Fisher-Yates shuffle - a statistically unbiased algorithm that gives every permutation an equal probability. Each click produces a different random order.
Sort Options
Case-Insensitive
By default, uppercase letters sort before lowercase (A sorts before a). Enable Case-insensitive to treat Apple and apple as equivalent, which is almost always what you want when sorting a real-world list of names or keywords.
Trim Lines
Strips leading and trailing whitespace from each line before sorting. This prevents lines that start with a space from being sorted ahead of lines that start with a letter, which would otherwise produce confusing results.
How to Use the Sort Lines Tool
Step 1 - Paste Your List
Click Paste to pull your list from the clipboard, or type directly into the input panel. Each line is treated as one item.
Step 2 - Select a Sort Mode
Click one of the six mode tabs at the top. The output updates automatically whenever you change the mode or modify the input.
Step 3 - Apply Options and Copy
Toggle Case-insensitive and Trim lines as needed, then click Copy output to put the sorted list on your clipboard.
Common Use Cases
Sorting Name Lists
Paste a list of attendees, contacts, or contributors and sort A → Z with Case-insensitive enabled to produce a standard alphabetical roster.
Ranking Numbers and Scores
Paste a column of scores, prices, or measurements and apply 9 → 1 to immediately see the top values. Use 1 → 9 to find the lowest values.
Randomising a Playlist or Draw Order
Paste a list of songs, names, or entries and click Shuffle to generate a random order for a playlist, prize draw, or rotation schedule.
Reversing a Timeline or Changelog
Changelogs and release notes are often written newest-first but needed oldest-first (or vice versa). Paste the entries and click Reverse to flip the order without changing anything else. If the list also has duplicates, run it through the duplicate remover first.