Sort Lines
Sort lines alphabetically, reverse, by length, randomly. Removes duplicates optionally. Free.
How to use the Sort Lines
Sort modes
Alphabetical: standard A-Z dictionary order. Numeric: treats each line as a number (handy for IDs, scores, prices). By length: orders by character count — useful for finding outliers. Random shuffle: Fisher-Yates shuffle for unbiased randomisation. Reverse: flips current order without sorting.
Options
Case-sensitive: when on, capitals sort before lowercase (apple after Banana). When off, "apple" and "Apple" are equal. Remove duplicates: keeps only the first occurrence of each line. Trim whitespace: removes leading and trailing spaces from each line before comparing.
Frequently asked questions
What sorting options are available?
You can sort alphabetically (A-Z or Z-A), by line length, in reverse order or randomly, and optionally remove duplicate lines at the same time.
How are numbers sorted?
By default lines are compared as text, so '10' sorts before '2'. If you need numeric order, pad numbers with leading zeros or use a dedicated number sorter.
Does sorting change the lines themselves?
No. Only the order changes. Line content, including capitalisation and spacing, is preserved.