Sort Lines
Sort lines alphabetically, by length, in reverse, or randomly. Ideal for organizing lists, code, and data.
What is a Sort Lines?
A line sorter rearranges the lines of any text into a new order: alphabetical, by length, reversed, or randomised. One click.
Sorted lists are easier to scan, compare, and de-duplicate. Developers sort import statements and configuration keys alphabetically for consistency. Writers sort reference lists for readability. Researchers sort data exports for analysis. Doing this manually in a text editor requires copy-pasting each line individually. This tool handles hundreds of lines in under a second.
How to Use Sort Lines
- 1Paste your list into the input area (one item per line).
- 2Select your sort mode: A→Z, Z→A, shortest, longest, reverse, or random.
- 3Configure options like case sensitivity and blank line handling.
- 4Click 'Sort Lines' to apply the sort.
- 5Copy the sorted output.
Features
- ✓6 sort modes: alphabetical (A-Z), reverse alphabetical (Z-A), shortest first, longest first, reverse order, and random shuffle
- ✓Case-sensitive sorting option
- ✓Whitespace trimming before sorting
- ✓Option to remove blank lines
- ✓Random shuffle uses the Fisher-Yates algorithm
Common Use Cases
Alphabetising a reading list
A researcher pastes 45 book titles in random order and sorts them A→Z, producing a clean alphabetical bibliography in 3 seconds rather than sorting manually.
CSS property ordering
A developer pastes 30 CSS properties from a class and sorts them alphabetically, making the stylesheet consistent with team standards across all 200 classes in the file.
Randomising a participant list
A facilitator with 25 workshop participants uses the random shuffle to assign them to 5 breakout groups fairly, without manual drawing or bias.