Monu Tools

行排序工具

按字母、數字或長度排序文字行,支援修剪、去除空行和忽略大小寫等選項。

如何使用 行排序

  1. 01

    貼入您的清單,每行一個項目。

  2. 02

    選擇排序方式:字母、數字、長度或反轉。

  3. 03

    切換修剪、移除空行或忽略大小寫,然後複製結果。

What it does

This line sorter orders a list alphabetically, numerically or by length, ascending or descending, and can also simply reverse the current order.

It is the quick way to tidy a list: alphabetizing names or tags, ordering log lines, arranging a keyword list, or sorting any block of text where one item sits per line.

Numeric and length sorting

Numeric sorting reads the number at the start of each line, so 2 comes before 10 instead of the alphabetical order that would put 10 first. Lines without a leading number are placed at the bottom.

Sorting by length orders lines from shortest to longest, or the reverse, which is useful for spotting outliers or grouping similar entries.

Cleanup options

Cleanup options make it tidy: trim whitespace from each line, drop blank lines, and ignore case so apple and Apple sort together rather than all capitals coming first.

Runs in your browser

To also remove repeats, pair it with the remove duplicate lines tool. Everything runs in your browser, so your list stays private.

常見問題

數字排序如何運作?

每行依行首的數字排序,因此 2 在 10 之前。沒有開頭數字的行排在最後。

忽略大小寫有什麼作用?

排序時不考慮字母大小寫,因此 apple 和 Apple 會排在一起,而不是所有大寫字母排在前面。

它能移除重複項目嗎?

它可以去除空行,您也可以配合「移除重複行」工具,在排序前後去除重複條目。

嵌入此工具

將此工具加入你自己的網站。複製下方的程式碼片段,它會自動保持最新。

<iframe src="https://monu.tools/embed/zh-Hant/sort-lines" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相關工具