Text Sorter
Sort text lines ascending or descending
Use this when you need a fast, accurate result — no sign-up, works entirely in your browser.
How to Use
- Enter your details into the fields above.
- Click the calculate button to get your result instantly.
- Use the clear button to start a new calculation.
Example
- Descending — banana / apple / cherry → cherry, banana, apple
- Ascending — delta / Alpha / charlie → Alpha, charlie, delta
Formula
Each line is trimmed and empty lines are removed, then the remaining lines are sorted A→Z or Z→A with a locale-aware comparison. Sorting is lexicographic, so "1, 10, 2" is the ascending order for those values; switch off text sorting and pad numbers if you need numeric order.
About Text Sorter
Sort text lines ascending or descending. This free online tool gives you fast, accurate results without registration or downloads.
Everything runs locally in your browser, so your data is never uploaded or stored — privacy first.