How to use it
- Paste your list into the input box, one item per line.
- Choose the order: A → Z, Z → A, by length, reverse or shuffle.
- Set the options: natural number order, ignore case, trimming and empty-line removal.
- Copy the sorted list from the output box. In shuffle mode, “Shuffle again” gives a new random order.
How it works
Alphabetical sorting uses your browser's collation rules for the page language (Intl.Collator), not raw character codes. Accented letters sort next to their base letter in English (“éclair” near “eclair”, not after “z”), while languages with their own alphabet order are respected: in Turkish “ç” comes after “c”, and in Swedish “ö” comes after “z”.
With “Natural number order”, runs of digits are compared by their value, so “file 2” comes before “file 10”. Without it, digits are compared one by one and “file 10” comes first. With “Ignore case”, lines that differ only in capital letters are treated as equal and keep their original order. Without it, they are still sorted alphabetically (not all capitals before all lowercase letters), but a capitalised line comes first when two lines differ only in case: “Apple” before “apple”.
Length sorting counts visible characters, so an emoji with a skin tone counts as one; lines of the same length are then ordered alphabetically. Reverse order flips the list without sorting it. Shuffle uses the browser's cryptographic random number generator with the Fisher–Yates method, so every order is equally likely. All sorts are stable: equal lines keep their original relative order. The output uses LF line endings.
Examples
Numbered files
“chapter 1, chapter 12, chapter 2, chapter 3” sorted A → Z with natural number order becomes chapter 1, chapter 2, chapter 3, chapter 12.
Names with accents
“Zoë, Émile, Ana, Eric” sorted A → Z gives Ana, Émile, Eric, Zoë in English. A simple code-point sort would wrongly put Émile last.
Random order for a draw
Paste a list of participants and choose Shuffle to get a fair random order for presentations or a seating plan. Click “Shuffle again” for a new order.
Frequently asked questions
Why is “Émile” sorted before “Eric” and not at the end?
The tool uses language-aware sorting, which compares accented letters by their base letter first. “Émile” and “Eric” both start with E, and “m” comes before “r”.
Why do uppercase and lowercase words appear mixed?
Alphabetical order in dictionaries ignores case, so “apple”, “Banana” and “cherry” are sorted by letter. Case only decides the order of words that are otherwise identical.
Is the shuffle really random?
Yes. It uses crypto.getRandomValues, the browser's cryptographically secure random generator, with an unbiased Fisher–Yates shuffle. Each possible order is equally likely.
Can I sort by a column or by numbers only?
Lines are sorted as whole text. Natural number order handles numbers inside lines correctly, but there is no column selection; for CSV data use a spreadsheet or the CSV to JSON converter.
Privacy
Your list is sorted only in your browser. It is not uploaded, stored or included in analytics.