About the Line Sorter
Sorting a list in a spreadsheet means importing it, sorting, and exporting again. This tool does it in the browser with the options that actually matter: natural numeric sorting so item10 lands after item9, case-insensitive ordering, and a shuffle for randomising a list.
How to use the Line Sorter
- Paste your lines into the input box.
- Choose alphabetical, numeric, or by line length.
- Pick ascending or descending, and whether case matters.
- Copy the sorted output, or use shuffle to randomise instead.
Frequently asked questions
Why does plain sorting put item10 before item2?
Because a plain text sort compares character by character, and "1" comes before "2". Natural or numeric sorting reads the digits as a number and orders them correctly.
How are uppercase and lowercase handled?
A strict sort puts all uppercase before lowercase, since that is their character order. Case-insensitive sorting is usually what you want for names and word lists.
Does it handle accented characters properly?
Yes. Sorting uses locale-aware comparison, so é sorts next to e rather than being pushed to the end of the list.
Can I sort by line length?
Yes. Useful for finding unusually long or short entries when cleaning data, or for arranging keyword lists by specificity.