A guest list, a set of keywords, a bibliography, file names copied from a folder. Any text with one item per line can be put in order without a spreadsheet.
Steps
- Open Sort lines.
- Paste the list, one item per line.
- Choose an Order.
- Tick any of the clean-up boxes you need, then press Copy.
The orders
- A → Z and Z → A: alphabetical, using the rules of the page language, so accented letters land next to their plain versions and not at the end.
- By length: shortest line first. Lines of equal length are sorted alphabetically.
- Reverse: turns the list upside down without sorting it.
- Shuffle: a random order, different each time.
- Keep order: no sorting, for when you only want the clean-up boxes.
Numbers, capitals and stray spaces
Numbers inside a line are compared by value. Item 2 comes before item 10, which a plain text sort gets wrong.
Upper and lower case do not split the list in two: apple, Apple and Banana stay in that order, with the lowercase spelling first when two lines are otherwise equal.
A line that starts with a space sorts before everything else, and empty lines collect at the top. Tick Trim spaces and Remove empty lines to avoid both. Remove duplicate lines keeps the first copy of each line, and Ignore upper/lower case makes it treat Apple and apple as the same line.
What it cannot do
Each line is sorted as a whole, from its first character. To sort people by surname the surname has to come first, and dates only sort correctly when written year first, such as 2026-11-30. For a single random item from the list, use Random picker. To see what changed between two versions of a list, sort both and paste them into Compare two texts.