Paste a list and sort it in the order you need: A to Z, Z to A, natural order where “item 2” comes before “item 10”, shortest or longest line first, reversed, or shuffled at random. The result updates as soon as you change the list or the order.
Use it to alphabetise names, glossaries and bibliographies, put version numbers or file names in sensible order, or randomise a list for a draw or a quiz. The shuffle uses your browser’s cryptographic random generator, and the list never leaves your computer.
How to use the Sort Lines tool
- Paste your list into the left box with one item per line.
- Pick a sort order, such as A → Z or Natural 1→9.
- Tick Remove duplicates or Remove empty lines if needed.
- Copy the sorted list from the right box or download it.
Why use ToolOrca Sort Lines
- Alphabetical, natural, length and random order
- Natural sort handles numbers inside text
- Fair shuffle with crypto randomness
- Optional case-sensitive sorting
- Remove duplicates and blank lines at the same time
- Sorts accented letters correctly
Alphabetical vs natural sort
A plain alphabetical sort compares text character by character, so “file10” comes before “file2” because “1” is smaller than “2”. A natural sort reads the numbers as numbers and gives “file2, file10”, which is what most people expect for file names, chapters and version numbers.
By default sorting ignores the difference between capital and small letters and places accented letters next to their base letter, so “Émile” sorts with the E names. Tick Case-sensitive to put all capitalised lines first, as computers traditionally do.
Frequently asked questions
How do I sort a list alphabetically?
Paste the list with one item per line and choose A → Z. The sorted list appears on the right, ready to copy.
How do I sort numbers correctly?
Choose Natural 1→9. It compares numbers by value, so 2 comes before 10 and 100, and decimals and numbers inside text are handled as well.
Is the shuffle truly random?
It uses the Fisher–Yates shuffle with crypto.getRandomValues, so every order is equally likely. Click Shuffle again for a new order.
Can I sort comma-separated values?
The tool sorts lines. Put each value on its own line first, for example with Find and Replace by replacing , with \n.