How to Use This Tool
Paste your list of lines and click "Sort A → Z" for ascending order or "Sort Z → A" for descending order. The tool provides several options to fine-tune the sort behavior.
Available Options
- Case-insensitive — Sorts without regard to letter casing, so "apple" and "Apple" appear next to each other. Recommended for most sorting tasks.
- Remove duplicates after sorting — Combines deduplication with sorting in one step. Only the first occurrence of each unique line is kept.
- Trim whitespace — Strips leading/trailing spaces from each line before sorting, preventing whitespace from affecting the sort order.
Common Use Cases
- Alphabetizing lists of names, products, or locations
- Sorting log files, inventory lists, or reference data
- Preparing sorted data for import into databases or spreadsheets
- Organizing glossary terms, bibliographies, or reference sections
- Reverse-sorting date-based lists to show newest entries first