Line sorter
Sort with Swedish or English locale rules.
Choose a named language or enter any valid BCP 47 language code. Word boundaries and sorting depend on browser support. This changes text analysis, not the interface language.
All analysis runs in your browser. No text is sent to an API, stored on a server or placed in the URL.
Limit: 50,000 UTF-16 code units per text. Results update after a brief typing pause.
Optional. Memory is lost on reload or when the tab closes. Turn this off to clear shared memory.
Sorting uses the selected locale and numeric order (line 2 before line 10). Swedish places å, ä and ö after z. Duplicates are not removed.
Preview – the original is preserved
Undo restores the last preview’s original until you edit the text again. Nothing is retained after the tab closes.
Counting rules and methodology
Words and sentences use Intl.Segmenter for the selected locale. Word-like segments include numbers. Hyphens normally separate words; an emoji is normally not a word. Word comparisons use NFC Unicode normalisation. Abbreviations and Unicode versions may affect sentence boundaries.
Unique words ignore case. Characters count grapheme clusters, so a combined character or emoji can be one visible character. Without whitespace also excludes line breaks and tabs. Code points and UTF-8 bytes describe the original text.
Empty text has zero lines. Otherwise a trailing line break includes the final empty line. Paragraphs are separated by at least one blank line. Text without terminal punctuation may still count as a sentence when it contains words. Longest sentence is measured in words.
Results are descriptive or model-based. They do not determine legal compliance, grammatical correctness, authorship or whether a particular person understands the text.
LIX: average sentence length and words longer than six lettersFlesch / Flesch–Kincaid: formulas and language limitationsIntl.Segmenter: Unicode segmentation