Text Sorter
Sort lines alphabetically or numerically in either direction while retaining duplicate values.
Workspace
Processing runs locally in your browser. Input and results are not saved by this tool.
Enter input or use an example to begin.
How to use Text Sorter
Enter your input, or select Use example. Adjust the options, then select Run tool. Copy the exact result or download it as a text file.
Features and supported inputs
Sort lines alphabetically or numerically in either direction while retaining duplicate values.
Common errors and limitations
Maximum 200,000 UTF-16 code units. Line operations normalize CRLF and CR to LF; removed trailing blank lines are not retained. Alphabetic sorting uses English natural collation, case-insensitive by default; numeric mode requires finite numbers.
Local processing
This workspace processes your input on this device. It does not send input to a processing service or store your results. Clipboard access may require browser permission; if unavailable, select the result and copy manually.