Natural versus alphabetical
Alphabetical sorting compares character by character, so “10” is less than “2” because “1” comes before “2”. Natural sorting reads runs of digits as numbers, which matches how people expect numbered items to be ordered.
Put any list in order. Sort lines alphabetically from A to Z or Z to A, in natural order so that “item 2” comes before “item 10”, by length from shortest to longest, or simply reverse the current order. Ignoring case keeps “apple” and “Apple” together.
Text
One item per line.
Natural, A to Z, Z to A, by length or reverse.
The sorted list appears instantly.
Sorting is often one step of a clean-up.
| Option | Best for | Trade-off |
|---|---|---|
| Sort Lines (this page) | Putting a list in a chosen order. | Keeps duplicates. |
| Remove Duplicate Lines | Removing repeats while keeping order. | Does not sort. |
| Text Compare | Comparing two sorted lists. | Sort both first. |
| Case Converter | Making capitals consistent. | Does not reorder. |
| Random Picker | Choosing items at random. | Not an ordering tool. |
A list contains item 10, Item 2, item 1, banana and Apple.
Use it for student and guest lists, file and product names with numbers, glossary terms, bibliography entries and keyword lists. Reverse order is useful when a list was exported newest-last.
Alphabetical sorting compares character by character, so “10” is less than “2” because “1” comes before “2”. Natural sorting reads runs of digits as numbers, which matches how people expect numbered items to be ordered.
The browser’s collation rules place accented letters next to their plain forms and handle case sensibly, so names such as “Émile” do not end up after “Z”.
Ordering by length helps find unusually long or short entries, such as truncated names or pasted paragraphs in a list of short codes.
Lists copied from spreadsheets, emails or PDFs often carry stray spaces, mixed capitals and repeated entries. A tidy routine is to trim and remove duplicates with Remove Duplicate Lines, sort here with Ignore case ticked, and then compare against the previous version with Text Compare to see what was added. Doing the steps in that order avoids duplicates that differ only by a space appearing next to each other after sorting.
Names may start with initials, such as “R. Sharma” and “Ravi Sharma”. Sorting compares from the first character, so initials group together before full first names. If you need surnames first, rearrange the names in a spreadsheet, then paste the result here to sort.
Thousands of lines sort in a moment in a current browser, and the result updates as you change the order or paste new text.
Reverse simply flips the list as it stands, which is useful for exports that list the newest item last. Z to A sorts alphabetically in descending order, regardless of the starting order. Choose the one that matches what you need the list to show.
A list of plain numbers such as 5, 40 and 300 sorts correctly with the natural order option. Plain alphabetical order compares digit by digit and would place 300 before 40.
Name lists are often sorted by first name in India and by surname in many other countries. Decide which convention your list uses before sorting, and keep it consistent. For titles, people usually ignore leading words such as The when sorting, which you can do by editing those lines first.
When two lists contain the same items in different orders, sort both the same way first. Afterwards, Text Compare shows only the items that are genuinely added or missing.
No. It sorts whole lines.
No. Reverse flips the current order; use Z to A for reverse alphabetical.
No.
Numbers inside text are compared by value, so item 2 comes before item 10. Plain alphabetical order would put item 10 first.
No. Use Remove Duplicate Lines before or after sorting.
Yes. Sorting uses the browser’s language-aware comparison.
Lists are sorted in the page with your browser’s language rules; the text is not sent anywhere.