Tool Hub

排序與去重

對行排序 (A-Z、長度、數值) 並去除重複,支援修剪與大小寫選項

處理以行為單位的文字:依字母、長度或數值排序;去除重複行;修剪空白;略過空行。變更選項後輸出即時更新。

輸入: 6 行 · 輸出: 4 行

輸出

使用方法

  1. Paste a list of lines into the input area — one item per line。
  2. Choose a sort order: alphabetical, reverse alphabetical, by line length, or numeric。
  3. Toggle deduplication to remove duplicate lines, with optional case-sensitive matching。
  4. Enable trim and remove-empty-lines options to clean up whitespace。
  5. Copy the output or use the copy-link button to share the state — everything runs in your browser。

範例

  • Pasting 10 country names with 3 duplicates, enabling sort A→Z and dedupe, reduces the list to 7 unique names in alphabetical order。
  • Pasting a mixed list of numbers like "10\n2\n20\n1" and choosing numeric sort produces "1\n2\n10\n20" instead of lexicographic order。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.