What this tool does
A focused tool for a specific cleanup job
Sort Lines offers language-aware alphabetical ordering, natural ordering for names with numbers, strict numeric modes, and length-based sorting. Duplicate removal can run before the sort.
Common use cases
- Order filenames with embedded numbers
- Rank numeric values
- Alphabetize keywords or categories
- Find the shortest or longest entries
How to use Sort Lines
- Paste one value per line.
- Choose the sort mode and direction.
- Set case sensitivity and optional deduplication.
- Review the order and copy or download it.
Options explained
- Natural sort places item2 before item10.
- Numeric sort parses each trimmed line as a number.
- Length modes count Unicode string units used by the browser.
- Case-insensitive ordering uses a locale-aware collator.
Example
Before
item10 item2 item1
After
item1 item2 item10
Edge cases and limitations
- Non-numeric lines sort after valid numbers in numeric modes.
- Equal values retain stable input order in modern browsers.
- Locale rules can vary slightly by browser language.