How line sorter works
Sorting lines alphabetically is a quick way to tidy an unsorted list — keywords, names, URLs, or any line-per-item data. Sorting brings duplicates together (handy before removing them) and makes a list easier to scan and compare.
This sorter splits your text on newlines and orders the lines, with options for ascending (A→Z) or descending (Z→A) and case sensitivity. By default it sorts case-insensitively so "Banana" and "apple" order naturally; turn on case sensitivity if you want uppercase first by ASCII order.
Paste your lines, choose the order and case sensitivity, and the tool returns the sorted list. Pair it with the Remove Duplicate Lines tool to clean a list completely.
Frequently asked questions
How does case sensitivity affect the sort?
Case-insensitive sort (the default) orders "Banana" and "apple" naturally, ignoring case. Case-sensitive sort uses ASCII order, where uppercase letters come before lowercase, so "Banana" sorts before "apple".
Are blank lines kept?
Yes, blank lines are kept as lines and sorted to the top (an empty string sorts first). Use the Remove Duplicate Lines tool if you want to drop blank lines too.
Does it sort numerically?
No, it sorts as text. For numeric sorting, numbers as text will order as "1, 10, 2" rather than "1, 2, 10". For numeric ordering, zero-pad the numbers first.
Can I sort descending?
Yes, choose Z → A. The same rules apply, just reversed, so the largest values come first.