About this tool
Text Sorter
Free Text Sorter to arrange one item per line alphabetically or numerically in ascending or descending order with practical cleanup options.
About the Text Sorter
Text Sorter arranges one item per line into ascending or descending order. It is useful for alphabetical lists, names, keywords, identifiers and simple numeric lists.
How to use this tool
Paste one item per line, choose text or numeric comparison and select ascending or descending order. Tervilo returns the sorted list in the editor so you can copy it into another application.
- Open the Text Sorter page on Tervilo.
- Enter or paste the text you want to work with.
- Choose any options relevant to the task.
- Run the tool and review the result before copying or publishing it.
How the calculation or transformation works
Text sorting uses the browser’s locale-aware comparison for ordinary text. Numeric mode attempts to compare numeric values when both lines can be interpreted as numbers; otherwise it falls back to text comparison.
Common uses
- Alphabetizing lists
- Sorting keywords
- Organizing names
- Ordering simple numeric values
- Preparing clean line-based data
Privacy and browser-side processing
Tervilo's text tools are designed to process the text in your browser. For ordinary text-editing tasks this can reduce the need to send your content to an application server. Even with browser-side tools, review your organization's security requirements before pasting confidential, regulated or sensitive information into any website.
Related text tools
Explore the Text Tools category for related utilities such as the Word Counter, Character Counter, Case Converter and JSON Formatter.
Frequently asked questions
The FAQ section below covers common questions about this tool, its counting method and practical limitations.
Questions & Answers
Frequently Asked Questions
Can I sort numbers as numbers?
Yes. Choose numeric comparison when the lines contain numeric values.
Does Text Sorter remove duplicates?
No. Sorting changes order only. Use Remove Duplicate Lines when you also need deduplication.