0 Lines 0 Words 0 Characters
Alphabetizer Guide — Sort Lists A-Z, Dedupe & Ignore Articles
An alphabetizer (also called a list sorter or alphabetical order sorter) arranges items into alphabetical order A–Z or reverse Z–A. Use this guide to sort list alphabetically with the right separator, case-insensitive rules, multilingual ignore articles, dedupe, and shuffle — and to see what is not supported here (natural numeric sort, last-name mode, length mode).
What Is an Alphabetizer?
An alphabetizer (also called an alphabetical order sorter) puts words, names, titles, or lines into standard alphabet sequence by comparing characters from left to right.
Why it matters: Hand-sorting long rosters, tag lists, or pasted exports is slow and error-prone — one misplaced line breaks an otherwise clean A-Z list.
Example: The words banana, apple, and cherry alphabetize to apple, banana, cherry.
Common mistake: Expecting numbered filenames like file10 to sort before file2 — that requires natural numeric sort, which this tool does not implement.
What This Alphabetizer Supports — and What It Does Not
Supported: A→Z sort via localeCompare; Z→A via reverse-order option; newline, comma, and space separators; case-insensitive comparison toggle; ignore leading articles in six languages; remove duplicates; Fisher-Yates shuffle; upload and download.
Not supported: Natural / numeric sort (file2 before file10); sort by last name; sort by line length; tab or semicolon separators; numbered output lines; live auto-sort on every keystroke; HTML tag stripping.
Why it matters: Many list tools advertise six sort modes — naming what this page actually does prevents wrong expectations when you paste filenames or class rosters.
Takeaway: Use this alphabetizer for lexicographic A-Z work with cleanup options; use a natural-sort tool when embedded numbers must order numerically.
| Sort type | file1, file2, file10 order | This tool |
|---|---|---|
| Lexicographic (character-by-character) | file1 → file10 → file2 | Yes |
| Natural / numeric (human numeric) | file1 → file2 → file10 | No |
How to Alphabetize a List Online
To alphabetize a list with this tool:
- Paste or type your items — one per line (default), comma-separated, or space-separated.
- Set separator and options — case-insensitive, ignore articles, remove duplicates, or reverse order as needed.
- Click Alphabetize — sorted output appears in the output panel with a count of items that changed position.
- Copy or download — use toolbar copy, download, or the retention bar to export.
Why it matters: Sort runs on demand (not on every keystroke), which keeps large pastes responsive in the browser.
Edge case: Empty input produces no output — paste at least one item before alphabetizing.
Separator Modes — Newline, Comma, and Space
The alphabetizer splits input into sortable list items using the separator you choose. Wrong separator choice is the most common reason a list “sorts incorrectly.”
New line (default)
Each line is one item. Best for rosters, tags, URLs, filenames pasted from a text file, or any one-item-per-row list.
Example: Three lines cherry, apple, banana become three sorted lines.
Comma
Splits on commas (and the CJK comma 、). Use for CSV-style single-line lists such as apple, banana, cherry.
Edge case: If your text contains Chinese or Japanese characters, output rejoins with 、 instead of , to match common CJK list style.
Space
Splits on whitespace runs. Use when each word in a single line should sort independently — not when items themselves contain spaces (use newline mode for those).
Common mistake: Space mode on full names — Jane Smith becomes two items (Jane and Smith), not one name.
Unicode and International List Sorting
Paste Unicode text as-is — accents, Cyrillic, CJK characters, and symbols are valid list items. The alphabetizer does not transliterate; it compares the UTF-8 code points you provide.
Why it matters: Mixed-language rosters and international keyword lists fail if a tool assumes ASCII-only input.
Technical behavior: When Chinese characters appear in items, sort uses extended localeCompare locales (zh-Hans-CN, ja-JP) plus your page language. Comma mode also recognizes the CJK comma 、 as a splitter and may rejoin with 、 when the sample contains CJK text.
Edge case: Accented Latin (e.g. résumé) sorts by Unicode collation rules for the page lang — not by stripped ASCII equivalents.
A-Z and Z-A Sorting Explained
A-Z sorting (ascending alphabetical order) compares items character by character using the browser’s localeCompare rules for your page language.
Z-A sorting applies the same comparison, then reverses the result — enable Reverse order after choosing other options.
Why it matters: A-Z is the default expectation for directories and bibliographies; Z-A helps when you want to scan from the end of the alphabet without re-reading the whole list.
Example: cherry, apple, banana → A-Z: apple, banana, cherry; with reverse: cherry, banana, apple.
Case-Sensitive vs Case-Insensitive Sorting
By default, case-sensitive sorting uses localeCompare with sensitivity: "variant" — uppercase and lowercase letters can sort in different groups depending on locale.
Enable Case-insensitive to use sensitivity: "base" — Apple and apple compare as equal for ordering, producing a more natural mixed-case flow.
Why it matters: Lists pasted from spreadsheets often mix capitalization; case-insensitive mode prevents uppercase-only blocks at the top or bottom.
Common mistake: Turning case-insensitive off and expecting apple and Apple to stay adjacent — they may separate under case-sensitive rules.
Edge case: Case-insensitive also affects duplicate removal when that option is enabled — Apple and apple count as one duplicate pair.
Ignore Articles (A, An, The) — Including Multilingual Titles
Ignore articles strips a leading article from the sort key only — the displayed text stays unchanged. Sort position follows the next word.
Example: The Sun sorts under S (key = Sun), not under T.
Why it matters: Bibliographies, reading lists, and media catalogs conventionally alphabetize titles by the first significant word.
Supported article languages
Article lists follow the page lang attribute (default English). Supported sets:
| Language | Articles stripped (leading) |
|---|---|
| English (en) | a, an, the |
| Spanish (es) | el, la, los, las, un, una, unos, unas |
| French (fr) | le, la, les, un, une, des |
| German (de) | der, die, das, ein, eine |
| Italian (it) | il, lo, la, i, gli, le, un, uno, una |
| Dutch (nl) | de, het, een |
Edge case: Only a leading article followed by a space is removed — mid-sentence “the” inside a title is not stripped.
Remove Duplicates While Alphabetizing
Remove duplicates keeps the first occurrence of each item (after trimming) and drops later repeats before sorting.
Why it matters: Pasted exports from CRMs, tag managers, or email lists often contain repeated lines — dedupe plus A-Z gives a clean unique roster in one step.
Example: Apple, apple, banana with case-insensitive + dedupe → Apple, banana (one apple entry kept).
Common mistake: Expecting dedupe without case-insensitive when Apple and apple should count as the same — enable case-insensitive for that match.
Shuffle a List (Random Order)
Shuffle randomizes item order using the Fisher-Yates algorithm — each permutation has equal probability. Shuffle replaces input text; it does not write to the output panel.
Why it matters: Quiz questions, playlist drafts, and raffle-style ordering need unbiased randomness, not alphabetical sequence.
Edge case: Optional remove-duplicates during shuffle uses the same separator split but does not alphabetize — order is random only.
Worked Examples
These results follow the exact sort logic in this tool. Use them to verify behavior or explain options to collaborators.
| Input | Options | A-Z result (first → last) |
|---|---|---|
banana, apple, cherry (newline) | Default | apple → banana → cherry |
cherry, apple, banana | Reverse order | cherry → banana → apple |
The Sun, apple | Ignore articles | apple → The Sun (sorts by Sun) |
file10, file2, file1 | Default (lexicographic) | file1 → file10 → file2 |
banana, apple, cherry, the orange, apricot | Ignore articles | apple → apricot → banana → cherry → the orange |
apple, banana, cherry | Comma separator | apple, banana, cherry |
Takeaway: Filenames with embedded numbers need natural sort elsewhere — here file10 precedes file2 because characters are compared left to right.
Common Use Cases
Names and rosters
Sort attendee lists, team names, or contact lines A-Z before printing or importing. Use newline mode so each full name stays one item.
Edge case: Last-name sorting is not built in — names sort by the first character of the full line unless you reorder columns manually first.
Tags, keywords, and labels
Alphabetize SEO keyword lists, hashtag sets, or taxonomy labels to spot duplicates and gaps quickly.
Tip: Combine remove duplicates + case-insensitive for consolidated tag exports.
Titles and bibliographies
Enable ignore articles so The Hobbit and A Wrinkle in Time sort under H and W respectively — matching common citation style expectations.
Developer and config lists
Sort dependency names, import paths, or env keys A-Z for readable diffs. For version strings like v1.10, remember lexicographic limits noted above.
Troubleshooting Unexpected Order
file10 sorts before file2
This tool uses lexicographic compare without numeric parsing — file10 comes before file2 at the fifth character (1 < 2).
Fix: Pad numbers (file02, file10) or use a natural-sort tool for that job.
Whole list treated as one item
Comma-separated text in newline mode sorts as a single line.
Fix: Switch separator to Comma, or put each item on its own line.
Duplicates still visible
Dedupe is case-sensitive by default — Apple and apple are different keys.
Fix: Enable case-insensitive before remove duplicates.
Title still sorts under “The”
Ignore articles was off, or the page language does not match the article word (e.g. French le on an English lang page).
Fix: Enable ignore articles and confirm <html lang="…"> matches the title language when possible.
Privacy — Alphabetize Lists Without Uploading
List sorting runs entirely in your browser. Pasted names, emails, tags, and internal data are not sent to a server for alphabetizing.
Why it matters: Rosters and customer lists stay on your device during sorting.
Edge case: Share links encode text in the URL — anyone with the link can read that input.
Limitations
- No natural / numeric sort —
localeComparewithoutnumeric: true. - No last-name or length sort modes — lexicographic A-Z only (+ reverse).
- Three separators only — newline, comma, space (no tab or semicolon).
- Sort on button click — not live auto-sort on every keystroke.
- Shuffle updates input — does not route through the output panel.
- Article stripping is leading-only — six languages via page
lang. - CJK sort — uses extended locale tags when Chinese characters are detected in items.
Reference: String.prototype.localeCompare — MDN (external).
Frequently Asked Questions
What is an alphabetizer?
A tool that arranges list items into alphabetical order (A to Z) or reverse order (Z to A) by comparing text using standard alphabet rules.
How do I alphabetize a list online?
Paste items, pick a separator, set options, click Alphabetize, then copy or download the sorted output from the output panel.
How does this alphabetizer work?
Input splits into items by separator, optional article stripping and dedupe apply, then items sort via localeCompare. Reverse flips the final order. All steps run locally in JavaScript.
Can I sort Unicode or international text?
Yes. Paste Unicode directly. CJK items use extended localeCompare locales; accented Latin follows your page lang collation rules.
What is the difference between A-Z and Z-A sorting?
A-Z is ascending alphabetical order. Z-A is the same comparison reversed — enable Reverse order after sorting ascending.
What does case-insensitive sorting do?
It compares letters without treating uppercase and lowercase as different — Apple and apple order together instead of in separate case groups.
What does ignore articles (a, an, the) do?
Leading articles are skipped for sort position only — The Sun sorts under S because the key becomes Sun. Display text stays unchanged.
Which languages support ignore articles?
English, Spanish, French, German, Italian, and Dutch article words — chosen from the page lang attribute (defaults to English).
What separators can I use?
New line (one item per row), comma (CSV-style, also splits on 、), or space (whitespace-separated words).
Can I remove duplicates and sort alphabetically?
Yes. Enable Remove duplicates — first occurrence kept, then the list alphabetizes. Pair with case-insensitive to merge Apple and apple.
Does this support natural or numeric sort?
No. file10 sorts before file2 under lexicographic rules. Natural numeric sort is not implemented.
Can I sort by last name or by line length?
No. Only full-line lexicographic A-Z (plus reverse) is supported.
What does shuffle do?
Randomizes item order with Fisher-Yates and replaces the input text. It does not alphabetize.
What does “items changed position” mean?
A count of how many lines moved or how many lines were added/removed compared to the pre-sort item list — useful feedback after alphabetizing.
Does sorting happen automatically as I type?
No. Click Alphabetize to run the sort. Line/word/character stats update live, but output updates on button click.
Why does file10 sort before file2?
Lexicographic compare reads characters left to right — at position five, 1 is less than 2, so file10 precedes file2. Pad numbers or use a natural-sort tool instead.
Can I sort comma-separated lists?
Yes. Choose Comma separator — items split on commas (and CJK 、), sort, then rejoin with comma or 、 depending on text content.
Can I upload a text file?
Yes. Upload accepts .txt, .csv, .md, .json, and .docx — content loads into the input field for sorting.
Can I download sorted output?
Yes. Use Download on the output panel or Export .txt from the retention bar.
Why is my list not sorting correctly?
Usually wrong separator, unexpected case rules, or expecting natural numeric order. Check separator mode and the limitations section for lexicographic behavior.
Does alphabetizer sort lines or words?
It sorts items defined by your separator — one line per item (default), one comma segment per item, or one whitespace token per item in space mode.
Can I put words in alphabetical order from a single line?
Yes. Use Space separator so each whitespace-separated token becomes one sortable item, then click Alphabetize.
How do I sort names alphabetically?
Paste one full name per line, keep newline separator, click Alphabetize. Names sort by the first character of each line — not by last name alone.
Does ignore articles work for book and movie titles?
Yes for leading A, An, or The in English (and equivalent articles in es/fr/de/it/nl). The Hobbit sorts under H; A Wrinkle in Time sorts under W.