📊Text Sorter

Sort lines of text

Lines: 0

How to Use

The Text Sorter supports ascending, descending, random, and reverse sorting of text lines. Options include alphabetical, numerical, or line length sorting with blank line removal. Ideal for data organization.

FAQ

How is Chinese text ordered?

Alphabetical mode uses Intl.Collator with the zh-Hans-CN collation, so Chinese lines sort by pinyin (a→z) on every device regardless of the system locale.

Can I sort by numeric value?

Yes, select numeric sort mode to arrange by actual values rather than string dictionary order.

Which sort modes are available?

Four: alphabetical, numeric, line length, and random shuffle — each with ascending or descending order. Numeric mode extracts leading numbers; non-numeric lines count as zero.

How are mixed Chinese and English lines ordered?

One collator compares character by character: English by alphabet and Chinese by pinyin, interleaved by where each first character falls — English is not pushed to the top or bottom as a block.