Text & writing tools
Text Sorter.
Put your lines in order, with clear alphabetical and numeric rules.
Your text is processed in your browser.
- Input UTF-16 units
- 0
- Original lines
- 0
- Retained lines
- 0
- Invalid numeric lines
- 0
Ready.
Exact rules, limits & privacy
Alphabetical modes compare UTF-16 keys deterministically; they are not locale collation or natural-number ordering. By default keys use native Unicode lowercase, not full case folding. Case sensitivity and trim() apply only to comparison. Retained lines keep exact spelling and spaces; duplicates remain. Equal keys keep original order in both directions. Numeric modes accept only complete finite ASCII decimal numbers (optional sign, decimal point and exponent); no hex, Infinity, NaN, thousands separators or blank-as-zero. Untrimmed surrounding whitespace is invalid unless Trim comparison keys is selected. Invalid numeric lines stay last in original order in both directions, with a count and warning. JavaScript Number precision applies; equal rounded numeric values remain stable. LF, CRLF and CR separate records. Empty input has zero records; a trailing separator adds a blank record. Output uses LF. Optional blank removal uses trim(), including non-breaking spaces, but not zero-width spaces.
Input limit: 100,000 UTF-16 code units. Larger text remains intact and current results are cleared with an error. Counts use UTF-16 units, not visual characters. No uploads, input tracking, saved drafts or external text processing. Page delivery and Tailwind Play CDN styling make ordinary network requests; inline CSS keeps the page usable without the CDN. Copy requires browser support/permission. Downloads are UTF-8 text. Empty results cannot be copied or downloaded.