In this article
Alphabetize a list online in seconds
To alphabetize a list, put each item on its own line, paste the list into the Sort Lines tool and choose A to Z. You can also sort Z to A, remove duplicates and ignore capital letters, so "apple" and "Apple" sit together. It works the same whether you call it alphabetize or alphabetise a list.
- Names and contacts: sort guest lists, class lists or customer names.
- Keywords and tags: clean and order keyword lists before you use them, and remove repeats with list cleaning tips.
- Numbered items: use natural sort so "Item 2" comes before "Item 10", as explained below.
Alphabetical order basics
Simple alphabetical sorting compares text character by character. That works for plain words, but creates three classic surprises:
- Numbers inside text: “item 10” comes before “item 2”, because “1” is before “2”.
- Capitals: some tools put all capitalised words before lowercase ones.
- Accents: “Émile” may end up after “Zara”.
Natural sort fixes numbers
Natural order reads numbers as numbers, so you get item 1, item 2 … item 10. It is how people expect file names, chapter lists, versions and room numbers to be ordered. The Sort Lines tool uses your browser’s language-aware rules, so accented letters sit next to their plain versions too.
Which sort for which list
| List | Best order |
|---|---|
| Names, guests, students | A → Z (case-insensitive) |
| Files, chapters, versions | Natural |
| Prices or scores in each line | By number in the line |
| Short phrases first (e.g. for tags) | Shortest first |
| Presentation order, raffles | Shuffle randomly |
| Newest first instead of oldest | Reverse current order |
How to sort
- Paste your list into Sort Lines, one item per line.
- Choose the order.
- Tick “Remove duplicates” if needed; keep “Trim spaces” and “Remove empty lines” on for lists copied from spreadsheets.
- Copy the sorted list.
Sorting surnames
To sort people by surname when the list says “Ali Khan”, flip the names first. With Find and Replace using regex, find ^(\S+) (\S+)$ and replace with $2, $1 to get “Khan, Ali”, then sort.
Fair random order
For raffles, team picks and presentation order, the shuffle uses your device’s secure random number generator and the Fisher–Yates method, which gives every possible order an equal chance. For a public draw, shuffle in front of everyone or share your screen so the result is trusted.
Sorting other languages
Alphabetical order differs between languages: in Swedish, “Ä” comes after “Z”; in Spanish dictionaries, “ñ” follows “n”. The tool follows your browser’s language rules, which suits most lists. Urdu and Arabic words are sorted by their own alphabet order. If a list mixes scripts, each script is grouped together, which is usually what readers expect.
Alphabetize a list in Word, Google Docs and Sheets
| Where your list is | How to put it in alphabetical order |
|---|---|
| Microsoft Word | Select the list, then on the Home tab click Sort (the A to Z button), choose Paragraphs and Text, then Ascending. |
| Google Docs | Docs has no built-in sort. Copy the list into Sort Lines, sort it and paste it back. |
| Google Sheets or Excel | Select the column and use Data then Sort range (Sheets) or Sort A to Z (Excel). |
| Phone notes or a chat message | Copy the text, sort it in Sort Lines in your phone’s browser and paste it back. |
Sorting in spreadsheets vs here
Spreadsheets sort columns well, but a quick list in an email, a chat or a document is faster to paste here. Copy one column from Excel or Google Sheets, sort it, and paste it back.
Numbering after sorting
Need a numbered list once it is in order? Paste the sorted list into a word processor and apply numbering, or use Find and Replace to add a dash or bullet to the start of every line with the pattern ^. Keep the numbers out of the list while sorting, otherwise “10. Zainab” sorts by the number, not the name.
Clean before you sort
- Remove stray spaces and invisible characters with Remove Extra Spaces.
- Make capitals consistent with the Case Converter.
- Compare two sorted lists with Text Compare to see what is missing.
Frequently asked questions
What is natural sort?
Natural sort orders numbers by value, so item 2 comes before item 10.
Why does item 10 appear before item 2?
Simple alphabetical sorting compares characters one by one, so 1 comes before 2.
Can I sort in reverse order?
Yes. Choose Z to A or descending.
Does sorting ignore upper and lower case?
Most tools can ignore case so Apple and apple sit together.
Is my list uploaded?
No. Sorting happens in your browser.
What is the fastest way to alphabetize a list?
Paste it into an online list sorter such as Sort Lines, choose A to Z and copy the result. It takes a few seconds and also removes duplicates or blank lines if you ask it to.
How do I alphabetise a list in Word?
Select the list, click Sort on the Home tab, choose Paragraphs, Text and Ascending, then click OK.
Can I sort a list Z to A?
Yes. Choose Z → A instead of A → Z. Remove duplicates, Trim spaces and Remove empty lines still work the same way.