Sort Lines Alphabetically
Sort lines alphabetically in ascending or descending order. Paste your list, sort instantly, then copy the ordered result. Copy it.
Enter your Texts
RESULT:
What this does
Got a list that is in no particular order and you want it alphabetised? This sorts it for you. Paste your lines, choose how you want them ordered, and the sorted version appears on the right, ready to copy. It turns a jumbled list into a tidy one in a single click, no dragging lines around by hand.
How to use it
- Paste your list into the box on the left, one item per line.
- Choose ascending or descending, and tick the case-insensitive box if you want it.
- Press Sort, then Copy to take the ordered list, or Clear to start over.
The sorting runs in your browser, so your list stays on your own device.
The sorting options
You get two controls to shape the result. The first is direction. Ascending runs from A at the top down to Z, the usual way you would read a sorted list, and it is selected by default. Descending flips that, running from Z back up to A, which is handy when you want the end of the alphabet first.
The second is the case-insensitive checkbox, and it changes how capital letters are treated. Leave it unticked and the sort pays attention to capitals. Tick it and capitalisation is ignored, so a word starting with a small letter and the same word starting with a capital are treated as equals and ordered purely by the letters themselves. For most everyday lists, ticking the box gives the clean A to Z order people expect.
How it handles numbers and capitals
Two honest details so the order never puzzles you. First, with the case-insensitive box left unticked, lines that begin with a capital letter are gathered ahead of lines that begin with a small letter. So a default sort can group all the capitalised entries first and the lowercase ones after. If you would rather not see that split, tick the box for a straight alphabetical run.
Second, the sort works through your lines as text, character by character, rather than reading numbers as values. That means a line starting 10 comes before one starting 2, because the character 1 sorts before 2. For a list of words this is exactly what you want. Just keep it in mind if your lines start with numbers, where the order may not match what you would get counting numerically.
When sorting a list helps
Alphabetical order makes a list easier to use in all sorts of ways. A long list of names, terms, or titles becomes far quicker to scan and search once it is sorted. Glossaries and indexes read better in order. Tidying a list before you compare it against another, or before you hand it on to someone else, saves everyone time. And sometimes you simply want the satisfying neatness of A to Z. Whatever the reason, this gets you there instantly.
Questions people ask
What does the case-insensitive option actually change?
It tells the sort to ignore capital letters, so the same word is ordered the same way whether it starts with a capital or not. Without it, capitalised lines are grouped ahead of lowercase ones.
Why is 10 sorted before 2 in my list?
The lines are sorted as text rather than by numeric value, so they are compared digit by digit. Since 1 comes before 2, a line beginning 10 lands ahead of one beginning 2.
Can I sort from Z to A?
Yes, choose the descending option before you sort. It orders the list in reverse, from the end of the alphabet to the start.
Does it change the lines themselves?
No, it only reorders them. The text of each line is left exactly as you entered it; the tool simply arranges the lines into alphabetical order.
Sarayu is an Assistant Lecturer at Herald College, currently studying Masters of Engineering at KU. She is a Software engineer and educator who enjoys writing, and publishes essays and articles. She helps to review word/text utilities for clarity and usability.