How to Sort Text Lines Alphabetically Online
A text sorter rearranges the lines of your text in the order you choose. Instead of dragging rows around by hand, you paste the list, press a button and get it back in order.
Sort Modes Explained
- Sort A to Z: Alphabetical order, from A at the top to Z at the bottom.
- Sort Z to A: Reverse alphabetical order.
- Shortest First: Lines with the fewest characters come first.
- Longest First: Lines with the most characters come first.
What Can You Sort?
- Names and Contacts: Put attendee, student or customer lists in alphabetical order.
- Keywords and Tags: Organise SEO keyword lists and hashtag groups.
- Phone Numbers: Order a list of numbers before checking them with the Direct WhatsApp Chat tool.
- Shopping and To-do Lists: Group similar items together by sorting.
- Code and Data: Sort imports, CSS classes or ID lists.
Good to Know
Sorting follows your browser's language rules, so a letter and its capital version sit next to each other. Numbers inside a line are read by value, which keeps "Item 2" ahead of "Item 10". Lines that start with spaces can sort in surprising places, so tidy them first with Remove Extra Spaces. To get rid of repeats, use the checkbox above or the Duplicate Line Remover. Once your list is in order, add numbers with the Line Number Generator.