Alphabetical Sorter Guide: The Right Way to Sort A→Z
Locale-aware, numeric-aware sorting explained — plus when alphabetical isn't the right order and what to do instead.
What locale-aware means
A naive sort compares characters by their code point, which produces the wrong answer for anything humans read. 'File 10' sorts before 'File 2'. 'ábaco' sorts far away from 'abaco'. 'Apple' sorts far from 'apple'.
The Alphabetical Sorter uses your browser's Intl.Collator with base sensitivity and numeric handling on, which fixes all three: numbers sort numerically, accents sort naturally, and case is ignored.
When alphabetical is the right order
Glossaries, ingredient lists, directories, indexes and reference lists all benefit from alphabetical order. Anywhere a reader will scan for a specific item, alphabetical wins.
When it isn't
Timelines, priority lists, story sequences, playlists and ranked lists carry meaning in their order. Sorting alphabetically destroys that meaning.
For those, use the Text Shuffle tool if you want to randomise, or leave the order alone.
Frequently asked questions
- How are numbers handled?
- Numerically. 'Item 2' sorts before 'Item 10', which is what humans expect.
- Is the sort case-sensitive?
- No — base sensitivity means 'Apple' and 'apple' sort together in their natural position.
- Can I sort Z→A?
- Yes — use the Text Sorter tool, which shows both A→Z and Z→A side by side.
We build and document free, privacy-first browser tools used by writers, students, marketers and developers. Every article is written and reviewed by the same team that ships the tools.
Expertise: Writing workflows, SEO content, text processing, front-end performance
- Last updated:
- Reading time:
- 4 min