Sort lines
Put a list into ascending or descending order.
Your result will appear here.
Enter your input, then run the tool.How to use the sort lines
Put names, keywords or any list in order. Choose ascending (A to Z) or descending (Z to A) and run the tool.
Paste one item per line, pick the mode and copy or download the sorted result.
- Paste your list into the Input box, one item per line.
- Choose a Mode: ascending (A to Z) or descending (Z to A).
- Press Run tool.
- Use Copy result or download the sorted list. “Copy a link to these settings” shares the chosen mode, not your text.
Good to know
- Sorting uses your browser’s locale-aware comparison, so accented letters and case are ordered the way a dictionary would.
- Numbers are compared as text: 10 sorts before 9. Pad numbers with zeros for numeric order.
- Duplicate lines are kept; remove them separately.
- Up to 500,000 characters of text.
- Your text stays in your browser and is never uploaded.
Examples
- pear, Apple, banana and Éclair sort ascending as Apple, banana, Éclair, pear: capitals and accents do not push words out of alphabetical order.
- The same list in descending mode gives pear, Éclair, banana, Apple.
If something goes wrong
A blank line appeared at the top.
Your text ended with an empty line, and empty lines sort first. Delete it from the result, or remove the trailing line break before sorting.
The end of a long list is missing.
The box holds up to 500,000 characters and cuts off anything pasted beyond that.
Questions
Why does 10 come before 9?
Lines are compared as text, character by character. Write 09 and 10 to sort numbers correctly.
Can I sort by a column or by length?
No. Whole lines are compared from their first character.
Is sorting case-sensitive?
It follows your language’s rules, which usually place a and A together rather than all capitals first.
Next steps: Remove duplicate lines · Text cleaner · Case converter
