Text Sorter
Sort a list of lines A to Z, Z to A, by number, by length, in reverse or at random, with options to ignore case and drop empty lines.
About Text Sorter
The Text Sorter puts any list in order: A to Z, Z to A, by number, by length, reversed or shuffled at random. Paste one item per line and copy the sorted list.
Sort numbers properly
Numeric order puts 9 before 10 before 100, unlike plain A to Z. Lines that are not numbers go after them.
Ignore case
Apple and apple count as equal and keep their original order.
Reverse or shuffle
Reverse flips the list without sorting; shuffle gives a random order, handy for draws and quizzes.
Drop empty lines
Removes blank lines from the result.
Load and save
Open a .txt file, then copy or download the result.
Private
Your text stays in your browser. Nothing is uploaded.
How to use Text Sorter
- Paste your list with one item per line, or press Open .txt file.
- Choose a sort order from the Sort list.
- Tick or untick Ignore case and Drop empty lines to suit your list.
- Copy the sorted result or press Download .txt to save it.
Help & FAQ
Why does the sorted list put 9 before 10?
The tool uses natural ordering, so numbers are compared by value. In our test A to Z gave 9, 10, 100 and not 10, 100, 9.
What does Ignore case do?
With it on, Apple and apple are equal and keep their input order. With it off, apple is placed before Apple in our test.
What happens to words in a numeric sort?
They go after the numbers and keep their original order. In our test, banana, Apple, cherry, apple and Banana followed 9, 10, 100.
Does it remove duplicate lines?
No. A repeated line stays repeated. Use a duplicate-line remover if you need unique lines.
Can we shuffle a list to pick a random order?
Yes. Choose Shuffle randomly. Each pick gives a new order. It is fine for classroom use but not suitable for a prize draw where fairness must be proved.
What does Drop empty lines do?
It removes blank lines. When we turned it off, the blank line came first in A to Z.
How are lines of equal length ordered?
Lines with the same length stay in the order they had in your input.
Does it sort columns in a table?
No. It sorts whole lines. Put the column you want to sort by at the start of each line, or sort the table in a spreadsheet.
Does it sort other alphabets?
It uses your browser's standard sorting rules, which handle accented Latin letters sensibly. Special national orders may differ.
Is there a limit on the number of lines?
The page states none. Very large lists may be slower because the sorting happens in your browser.
Can we save the sorted list?
Yes. Use Copy or Download .txt.
Is our list uploaded?
No. Sorting is done in your browser and your list is not sent for processing.