行排序
按英语字母、自然数字或精确Unicode码点规则稳定升降序排列最多50,000行;可忽略大小写、仅在比较时修剪,并明确把空行放首部/尾部或移除。
使用步骤
如何使用
- Paste one item per line, up to 100,000 characters and 50,000 lines.
- Choose the order, comparison method, empty-line rule, and optional comparison-only cleanup.
- Sort the lines, review the count, then copy or download the TXT result.
Comparison choices with clear boundaries
English alphabetical mode uses an English collator. Natural-number mode compares digit sequences numerically, so item2 comes before item10. Exact code point mode compares Unicode values directly. Ignore case and trim edges affect comparison keys only; every retained line keeps its original text.
Stable results and explicit empty-line handling
Equal comparison keys keep their input order. Empty lines can stay grouped first or last, or be removed. CRLF and CR endings become LF, and the result reports both input and retained line counts. Input is limited to 100,000 characters and 50,000 lines.
常见问题
你可能还想知道
Does trimming change my lines?
No. Trimming is used only to make the comparison key; the original leading and trailing spaces remain in the result.
How does natural-number sorting work?
Digit sequences are compared numerically inside an English collator, so file2 sorts before file10. Text without numbers still follows alphabetical comparison.
What happens to equal lines?
Sorting is stable: lines with equal comparison keys keep the order in which they appeared.