Sort Lines Tool
The Sort Lines Tool lets you sort text lines alphabetically, numerically, by length, or randomly. It also supports removing duplicates, trimming whitespace, and case-insensitive sorting. Perfect for organizing lists, cleaning up data, and preparing text for further processing.
Choose from multiple sort modes: A to Z, Z to A, numeric order, line length, or random shuffle. Enable toggles for case-insensitive comparison, duplicate removal, and whitespace trimming to get exactly the output you need.
How it works
Alphabetical sorting uses locale-aware string comparison. Numeric sorting parses leading numbers from each line. Length sorting compares character counts. Random mode uses the Fisher-Yates shuffle algorithm.
Use cases
- Sorting word lists or glossaries alphabetically
- Organizing CSV data or log entries by value
- Removing duplicate lines from large text files
- Sorting numeric data like scores or measurements
- Randomizing lists for quizzes, drawings, or assignments