Line Sorter
Sort text lines alphabetically or numerically, reverse them or shuffle their order.
Continue with
Keep working with this result. Choose the next tool, then run it when ready.
How to use Line Sorter
Keep your original text while sorting a separate result. Choose case sensitivity, whitespace trimming and empty-line removal.
Details and limits
Alphabetical sorting uses Unicode character order, not locale-specific collation. Numeric sorting puts finite numeric lines first; nonnumeric and blank lines remain in their original relative order afterward. Input is limited to 200,000 characters.
Practical example
Choose numeric mode for quantities rather than alphabetical mode, which compares characters. Numeric mode places nonnumeric lines after numeric values.
Enter 10, 2 and 1 on separate lines. Numeric ascending produces 1, 2, 10; alphabetical ascending produces 1, 10, 2.
Frequently asked questions
Why does alphabetical order put 10 before 2?
Alphabetical mode compares text, so the first character decides this example. Choose numeric sorting for number values instead.
Does sorting also remove duplicate entries?
No. Sorting changes order but retains repeated lines. Use Remove Duplicate Lines separately if each entry should appear only once.
Does reversing mean reverse alphabetical order?
The reverse mode reverses the existing line sequence without comparing values. Descending alphabetical sorting is a separate mode.