Sort Lines
Put any list in order: alphabetical A–Z or Z–A, natural order where “item 2” comes before “item 10”, by the first number on each line, by length, reversed or shuffled at random.
Runs in your browser
How to use
- Paste your list, one item per line.
- Choose a sort order.
- Copy the sorted list.
How it works
Alphabetical sorting uses the Unicode Collation Algorithm through your browser's Intl.Collator, so accented letters sort next to their base letter (“é” with “e”) instead of after “z”. Natural order compares digit sequences as numbers.
Random shuffle uses the Fisher–Yates algorithm, which gives every possible order the same probability.
Examples
- Natural vs strict
- Strict: file1, file10, file2. Natural: file1, file2, file10.
- Random draw
- Paste participant names and shuffle to create a fair random order.
Common uses
- Alphabetising names, glossaries and bibliographies
- Ordering file names and versions naturally
- Randomising lists for draws or quizzes
Privacy & security
This tool runs entirely in your browser. Your files and text are never uploaded to our servers — processing happens on your device and results are created locally. How each tool handles files
Frequently asked questions
Why does “Émile” sort next to “Emma”?
Language-aware collation treats accented letters as variants of their base letter, which is what readers expect.
Is the shuffle truly random?
It uses the browser's random number generator with an unbiased Fisher–Yates shuffle. For raffles with legal requirements, use a certified draw service.
Last updated: