Sort lines
Sort lines by locale, exact decimal value or natural order, with an explicit processing language and whitespace options.
How to use
Paste lines, select the text language, sort mode and direction. Explicitly choose case-insensitive comparison, trimming or dropping empty lines if needed. Process, review, then copy or download TXT.
With English and ascending natural order, file10 followed by file2 becomes file2 followed by file10; comparison ties retain their original order.
Support & limits
Locale and natural sorting use Intl.Collator with the selected language. Numeric mode compares decimal values exactly without Number conversion: an optional sign, decimal point and at most 256 characters; no exponent or grouping separators. CR and CRLF become LF; the original input fields remain unchanged.
Common questions
Does sorting remove duplicate lines?
No; sorting retains duplicates. Dropping empty lines and trimming spaces are separate options, both off by default.
Related tools
Remove duplicate lines
Keep the first occurrence of each line using your rules.
Filter lines
Include or exclude lines containing literal text, with an explicit case-sensitivity policy.
Compare two lists
Compute intersection, union or differences between two lists with first-occurrence ordering and explicit comparison options.