Back to public tools
All tools
Text utility

Text Sorter

Sort a list alphabetically from A to Z or Z to A. Paste one item per line, then copy or download the sorted list.

Your text stays in your browser and is never uploaded or stored.

Paste one item per line. The complete sorted result updates locally. Default text ordering keeps the original tool’s behavior; Advanced settings adds natural numbers, language collation, length, fields and groups.

Active method: ordinal; whole line; ascending; keep whitespace; keep duplicates; sort the complete body; no header. Equal keys keep their original order. Missing fields stay last in both directions.

Updating the current sorted text…

Advanced settings

Natural sorting compares digit runs exactly, including very large integers; signs/decimal marks are ordinary text. Language collation uses this browser’s Intl.Collator. Length counts graphemes in the selected key. Delimiter splitting is literal, with \t for a tab; quoted CSV fields are not parsed.

Trimming changes output edges before comparisons. Dedup uses whole lines after trimming and native case matching; equal selected keys alone do not delete records. Paragraph separators stay in place even with Remove empty lines. The first physical header stays untouched. Imports accept UTF-8 up to 2 MiB and stop after five seconds; invalid imports keep the previous source.

Text stays local. Limits: 2 MiB UTF-8, 100,000 original lines, 32 MiB complete report and eight seconds of worker processing. Oversized jobs are refused in full. Output normalizes line endings to LF; the report retains exact original source strings.

How to sort lines and follow their positions

Paste one item per line. Default text ordering, case matching, Z-to-A direction and empty-line removal keep the original behavior. Copy result and Download .txt contain the complete result. Clear, example and UTF-8 import offer Undo while keeping sort settings.

Advanced settings adds natural digit-run ordering, selected language collation, whole-grapheme length, literal delimiter fields, trimming, duplicate removal, paragraph groups and an untouched first-line header. Closing Advanced keeps every setting. The position CSV and JSON report include all original lines, including removed rows and retained representatives.

Example: sort filenames and grouped records

Natural mode puts item2 before item10 and compares very large digit runs exactly. Leading-zero variants such as item01 and item1 tie and keep their original order. Signs, decimal marks and exponents remain ordinary text; this is filename-style ordering rather than signed numeric-value parsing.

To sort records by a column, choose a literal delimiter and its 1-based field number. Missing fields stay last in either direction. This splits literal text without interpreting CSV quotes. Paragraph mode sorts each group separately and retains blank separators; preserve a header to keep the first physical line untouched.

About languages, duplicates and complete reports

Language mode uses the selected browser Intl.Collator and records its resolved rules. Case ignoring keeps accent distinctions; browser Unicode/ICU versions can affect results. Length uses whole graphemes in the chosen key, including emoji families and combining marks. Equal keys always keep original order, even in descending sorts.

Trimming changes output line edges before sorting. Duplicate removal compares whole trimmed/case-matched lines, not selected fields or collation equivalence, and keeps the first original representative within each paragraph group. Group separators remain even with empty-line removal; a header is excluded from trimming, filtering and deduplication.

Each export is complete. CSV quotes values, uses UTF-8 BOM/CRLF and protects formula-like text; JSON retains exact source strings and positions. Output line endings are normalized to LF. Imports are UTF-8 up to 2 MiB and stop after five seconds. Sorting allows 100,000 lines and a 32 MiB complete report and stops after eight seconds; oversized work is refused in full. No source text is uploaded or stored.

Stars and feedback

Loading…

Tool reference #127