Text Sorter
Sort text by line. Supports alphabetical, numeric, and length sorting. Useful for organizing lists and data.
Last updated:
How to Use
Expand how to useCollapse how to use
- 1
Enter text
Enter or paste the text you want to sort
- 2
Choose sort order
Select alphabetical, numeric, or length sorting, and set ascending/descending
- 3
Copy result
Copy the sorted text for use
About Text Sorter
Text Sorter arranges lines of text alphabetically, numerically, or by character length in either ascending or descending order. It's ideal for organizing todo lists, sorting CSV rows, cleaning up log files, alphabetizing glossaries, or ordering imports in code files. Additional options include case-insensitive sorting so that 'Apple' and 'apple' are treated equally, and empty lines are automatically moved to the end for cleaner output. Statistics display input and output line counts at a glance.
Key Features
- Three sort types: alphabetical, numeric, and by length
- Ascending and descending order options
- Case-insensitive sorting option
- Japanese hiragana/katakana equivalence option
- Real-time sorting preview
Use Cases
- Alphabetize a list of names, products, or terms
- Sort CSV rows or tab-separated data
- Organize imports in code files
- Clean up and deduplicate mailing lists
- Sort log entries by timestamp or severity
FAQ
How does numeric sorting work?
Numeric sorting extracts the first number from each line and sorts based on that value. Lines without numbers are moved to the end.
What is length sorting?
Length sorting orders lines by their character count. Useful for finding the longest or shortest lines in a list.
How are empty lines handled?
Empty lines are moved to the end of the sorted result. The statistics show the number of empty lines separately.
Can I sort a list while ignoring capitalization?
Yes. Enable the 'Ignore case' option to treat 'Apple' and 'apple' as the same when sorting. This is useful for alphabetizing mixed-case lists.
Is my text sent to any server?
No. Sorting runs as JavaScript in your browser. Text data is not transmitted externally.
