Sanye Hub

Text Sort — Tutorial

Sort multi-line text by line…

Text Sort: Sort Lines in Ascending or Descending Order

Features

  • Paste multi-line text.
  • One-click ascending or descending sort.
  • Choose whether to ignore or respect leading/trailing spaces.
  • Quick result copy supported.

Use Cases

  • List organization: Sort names, emails, phone numbers alphabetically or numerically for easier management.

FAQ

What limitations should I know?

Sorting rule: Intl.Collator('zh-Hans-CN', { numeric: true, sensitivity: 'base' }); case-insensitive for English letters, numeric comparison for digit segments (e.g., 2 comes before 10).

When might it fail?

Leading/trailing spaces: ignored by default (trim); in respect mode, spaces participate in comparison and remain in the result. Empty lines after trim are dropped in ignore mode; only fully empty lines are dropped in respect mode.

What else should I watch for?

No duplicate removal: This tool only adjusts line order; use the "Text Deduplicate" tool to remove duplicates.