[ TIDY / a↓z ]
Line sorter
Sort a text list alphabetically, naturally, or by line length.
02 / Your result
Your result will appear here.
Start with your own input or try an example.
What it does
Put a pasted list into a useful order before moving it into a document or spreadsheet. Natural sorting keeps numbered labels such as Chapter 2 ahead of Chapter 12; alphabetical and length sorting give you other ways to review the list. Choose ascending or descending order and optionally remove blank lines.
Useful when
- Order numbered filenames or chapter labels naturally.
- Arrange a resource list alphabetically before publishing it.
- Find unusually long entries by sorting lines by length.
How to use it
- Paste one item per line, up to 10,000 lines within the text limit.
- Choose natural, alphabetical, or length sorting and set the comparison options.
- Sort the list, check the result, and copy or download the ordered lines.
A few useful details
How does natural sorting handle numbers?
The browser’s English collator compares digit sequences numerically, so item 2 comes before item 12. This is not a decimal-value or date parser. Alphabetical sorting compares the same text without numeric ordering; exact collation can vary with browser Unicode data.
Does sorting modify the text in each line?
Retained line text, including surrounding whitespace, stays unchanged. CRLF and CR line endings become LF. A final newline is preserved when any lines remain and is not treated as an extra list item. Equal sort keys keep their original relative order, even in descending mode.
Are duplicates removed when I sort?
No. Duplicate entries remain; use the duplicate line remover for that step. Blank and whitespace-only lines can be removed separately. The sorter accepts up to 10,000 lines and 100,000 UTF-16 code units, all processed in your browser.