← All tools

Line Sorter: Numeric, Natural, Filters & Shuffle

Sort exact decimal strings, text or natural identifiers; keep or exclude matches, remove duplicates, reverse or shuffle locally.

line-sorterLOCAL WORKSPACE

Enabling local controls…

1. Input and options

Runs in page memory, without uploading or saving input. Text input and generated output: 1 MiB UTF-8 each. Copy is explicit; results clear whenever inputs change.

Trim, filter and deduplicate before sorting; add affixes last. Blank lines and spaces stay unless changed explicitly. CRLF/CR normalize to LF. Literal case-insensitive matching uses Unicode lowercase, not full case folding; regex follows JavaScript iu matching. Numeric order compares signed decimal strings exactly; no exponent, spaces or separators. Nonnumeric lines stay last in original order in both directions. Natural order uses English Intl.Collator; ICU versions can differ. Regex uses a JavaScript Unicode pattern without / delimiters, in a cancellable Worker with a one-second processing limit. Empty filter means no filtering. Maximum 50,000 lines; each filter/affix 512 characters; output 1 MiB.

Defaults preserve ordinal order, spaces and blanks. Numeric mode uses exact signed decimals without exponents; nonnumeric lines stay last. Regex runs in a cancellable Worker (1s processing). LF output; at most 50,000 lines and 1MiB.

2. Result

Enter input or load a sample, then run.

If clipboard access is denied, select the output and copy manually.

How to use this tool

Enter one item per line. Choose order, contains/prefix/suffix/exact/regex filtering and keep/exclude. Length counts Unicode graphemes.

When not to use it

Defaults preserve ordinal order, spaces and blanks. Numeric mode uses exact signed decimals without exponents; nonnumeric lines stay last. Regex runs in a cancellable Worker (1s processing). LF output; at most 50,000 lines and 1MiB.