Line Sorter
Line Sorter alphabetical list organizer order pasted lines sort rows of textNothing sorted yet.
Put one item on each line
Paste a list, choose alphabetical or numeric order, select direction, then press Sort lines. Output keeps every nonblank line, including duplicates, and does not alter the original box.
How alphabetical sorting works
Alphabetical mode uses the browser's locale-aware comparison and ignores letter case for ordering. This usually places “apple” beside “Apple” and handles accented letters more naturally than raw character-code order. Leading and trailing spaces are removed before comparison because pasted padding rarely represents meaningful content. Duplicate lines remain separate so a list's counts do not change silently.
Numeric sorting is intentionally strict
Numeric mode expects each nonblank line to contain one valid number. Decimals, negative values, and scientific notation are accepted. A label such as “12 items” is not treated as 12 because guessing could hide malformed data. If any line is not numeric, the tool reports an error and leaves the previous output alone.
Worked example
Paste three lines containing Banana, apple, and Cherry. Alphabetical ascending order returns apple, Banana, Cherry. Switch to descending and the order reverses. For a numeric example, lines 10, 2, and −4 become −4, 2, 10 in ascending mode. Alphabetical mode would place 10 before 2, which is why the method selection matters.
Useful list-cleanup choices
Keep blank-line removal selected for inventories, attendee names, URL lists, and spreadsheet rows copied as plain text. Clear it when blank rows separate meaningful groups, though their position after sorting will no longer preserve those groups. Sort only one logical column at a time; sorting a pasted multi-column table by its entire line may produce surprising order.
Limits and privacy
Sorting runs only in this browser and the pasted list is not uploaded. The tool does not save history, detect headers, sort by a selected word, parse CSV quoting, or apply “natural” filename rules such as placing item2 before item10. Very large lists depend on available browser memory. Review results before replacing source data, especially when capitalization or locale-specific letter order matters.
Line Sorter FAQ
Are duplicate lines removed?
No. Use Duplicate Line Remover when you want one copy of each line.
Does sorting change capitalization?
No. Comparison ignores case, but output preserves the text's original capitalization.
Can I sort comma-separated values?
Only if each complete row should be compared as plain text. Use a spreadsheet for column-aware sorting.
Related tools
Limitations of whole-line comparison
Comparison is locale-aware plain text or strict numeric value; the tool does not parse headers, CSV columns, or natural filename segments.