How to sort lines
- Paste your list into the "Your text" box, one item per line. "Try an example" loads a list of countries with mixed capitals.
- Choose an order: A → Z, Z → A, Natural (2 before 10), Shortest first, Reverse order or Shuffle.
- Set the options. Decide whether capitals matter, and whether to remove empty lines (on by default) and repeated lines.
- Copy the sorted list or download it as a .txt file. When shuffling, press "Shuffle again" for a new order.
Features
- Alphabetical A to Z and Z to A, using your browser's language-aware comparison so accented letters sort next to their plain versions.
- Natural number order for file names, chapters, invoice numbers and anything with numbers inside.
- Shortest first, sorting by length with alphabetical order for ties.
- Reverse order to flip a list without sorting it.
- Shuffle with a button for a fresh order.
- Remove empty lines and exact duplicates in the same step.
Alphabetical or natural sort?
Computers sort text one character at a time. That works for words, but numbers go wrong: in a plain A → Z sort, "file10.jpg" lands before "file2.jpg" because the character 1 comes before 2.
Natural order fixes this by treating runs of digits as numbers:
- A → Z: file1, file10, file11, file2, file3
- Natural: file1, file2, file3, file10, file11
Use natural order for photo names, numbered lessons, room numbers, version lists and anything like "Week 3". Stick with A → Z for plain words, where both give the same answer. Note that natural order reads whole numbers, so decimals like 1.5 and 1.25 are compared as two separate numbers either side of the dot. For lists of decimal values a spreadsheet is more reliable.
Sorting by length and shuffling
"Shortest first" is useful more often than you might expect: ordering keywords from short phrases to long-tail ones, or finding the longest product names that might not fit on a label.
Shuffle helps whenever order shouldn't be predictable: mixing quiz questions, choosing who speaks first in a meeting or randomising a practice list of vocabulary.
Why use Fileora's line sorter
Opening a spreadsheet just to alphabetise a list is overkill. Here you paste, pick an order and copy, and the options for blank lines and repeats save a second clean-up step.
Your data stays on your device, which matters for lists of names, customers or grades. It is free, needs no registration and works on phones and tablets.
For more list work, remove near-duplicates with remove duplicate lines, fix stray spaces with remove extra spaces, or flip letters and words using reverse text.