Text Sorter
Sort lines A→Z or Z→A, with numeric-aware comparison.
Your text stays in your browser.
About this tool
Each line is compared with a numeric-aware, case-insensitive locale sort so “item 2” comes before “item 10”.
How it works
Paste a list, choose ascending or descending, and copy the sorted output.
lines.sort(localeCompare numeric)
Examples
A list
banana / apple / 10 / 2 → 2, 10, apple, banana
FAQ
Are blank lines kept?
Yes. Empty lines sort together at the start or end depending on direction.
Unicode?
Sorting uses the runtime locale so accented letters group naturally.

