Put Any List in Order — Alphabetical, Numeric, by Length or Random
Sorting is the quiet workhorse of text processing. Names need alphabetizing, numbers need ranking, references need ordering, and sometimes — for quizzes, drawings and playlists — a list needs exactly the opposite: a fair shuffle. This tool sorts the lines of any text in four modes with full control over direction and case handling, plus an optional deduplication pass. Paste, choose, sort, copy. Everything runs in your browser, instantly, with no size limits worth mentioning.
The Four Sorting Modes
- Alphabetical — classic A→Z or Z→A ordering using proper locale-aware comparison, so accented characters sort where readers expect them rather than being exiled to the end of the list by their raw character codes.
- Numeric — lines are compared as numbers: 9 before 10 before 100. Plain alphabetical sorting infamously orders these as 10, 100, 9; numeric mode fixes that for price lists, measurements, version-less build numbers and anything else quantitative. Lines without a leading number group together at the end.
- By length — shortest to longest or the reverse. Useful for spotting outliers in data, arranging headlines, and prioritizing keyword lists where length correlates with specificity.
- Random shuffle — a genuine Fisher–Yates shuffle giving every arrangement equal probability, suitable for raffles, randomized question orders and unbiased sampling. Each click reshuffles.
How to Use It
- Paste your list, one item per line.
- Pick the mode and direction (ascending or descending).
- Optionally enable case-insensitive comparison, trim whitespace, remove empty lines or unique lines only.
- Click Sort and copy or download the result. The original input stays in place, so you can re-sort with different settings freely.
Details That Make Sorting Correct, Not Just Fast
Case handling deserves a word: in raw character-code sorting, every uppercase letter precedes every lowercase one, which scatters “apple” and “Apple” to strange places. The case-insensitive option compares letters as equals, producing the dictionary-style order humans expect — enable it for any natural-language list. Numeric mode parses leading numbers including decimals and negatives, so “-3 items” sorts before “2 items”. The unique-only option applies the same exact-match logic as the Duplicate Line Remover, letting you sort and dedupe a messy merged list in one pass instead of two.
Everyday Sorting Jobs
Alphabetizing participant and reference lists; ranking expense lines by amount; ordering TODO items by length as a crude effort proxy; shuffling a class roster for fair presentation order; preparing sorted keyword files that diff cleanly between SEO exports; arranging configuration entries so code reviews show real changes rather than reordering noise. Sorted text is easier to scan, search, compare and maintain — and since this tool processes everything locally, even sensitive lists of customers, transactions or credentials metadata can be ordered without a privacy thought. Ten thousand lines sort in the blink of an eye; paste, click, done.
One closing technique worth adopting: sort before you diff. When two versions of a list need comparing — two keyword exports, two configuration files, two inventories — sorting both with identical settings first means any comparison tool will line up matching entries and expose genuine differences instead of reordering noise. It is a thirty-second preparation step that routinely turns a messy manual comparison into a clean mechanical one.
Frequently Asked Questions
Why does alphabetical sorting put 100 before 9?
Alphabetical mode compares character by character, and “1” precedes “9”. For numbers, switch to numeric mode, which parses values and orders 9, 10, 100 correctly — including decimals and negatives.
Is the random shuffle actually fair?
Yes — it uses the Fisher–Yates algorithm, which gives every possible ordering equal probability. Each click produces a fresh, unbiased shuffle, suitable for drawings and randomized tests.
How are uppercase and lowercase words ordered?
By default, comparison is case-sensitive. Enable the case-insensitive option for dictionary-style ordering where “apple” and “Apple” sort together — the right choice for most natural-language lists.
Can I sort and remove duplicates at the same time?
Yes. Enable “unique lines only” and the output is both sorted and deduplicated in a single pass, using exact matching after your chosen case and whitespace normalization.