🔍

首页Home › 文本工具Text Tools

🔤 排序 Unicode 字素Sort Graphemes

按字素排序(码位顺序或本地化比较),Emoji 序列不会被拆开。本地处理。可设置「排序方式」、「连接符」、「降序」。Sort graphemes by code point or with locale-aware comparison; emoji sequences stay intact. Processed locally. Settings: Sort by, Joiner, Descending.

使用说明与常见问题How-to & FAQ

「排序 Unicode 字素」是什么?What is the Sort Graphemes tool?

按字素排序(码位顺序或本地化比较),Emoji 序列不会被拆开。本地处理。可设置「排序方式」、「连接符」、「降序」。Sort graphemes by code point or with locale-aware comparison; emoji sequences stay intact. Processed locally. Settings: Sort by, Joiner, Descending.

如何使用「排序 Unicode 字素」?How do I use the Sort Graphemes tool?

在「排序 Unicode 字素」中,把内容粘贴或输入到上方输入框,按需设置「排序方式」、「连接符」,结果会实时显示在下方,点击「复制结果」即可复制。In the Sort Graphemes: Paste or type into the input box, adjust "Sort by", "Joiner"; the result appears below instantly — click "Copy result" to copy it.

两种排序有什么区别?What is the difference between the two orders?

“码位”按每个字素第一个码位的数值排序(大写字母排在小写前面);“本地化”用浏览器的语言规则比较,大小写和重音字母排在一起。Code point sorts by the value of each grapheme's first code point, so capitals come before lowercase letters. Locale compares with the browser's language rules, so case and accented forms sit together.

换行和空格也会参与排序吗?Are spaces and line breaks sorted too?

会,它们也是字素,排序后通常集中在开头。要按行排序请用排序文本行的工具。Yes, they are graphemes too and usually end up at the start. To sort whole lines, use a line-sorting tool.

什么是字素(字素簇)?What is a grapheme (grapheme cluster)?

字素(字素簇)就是看到的一个字符,它可能由好几个码位组成:例如 é 可以是 e 加一个组合重音符,👨‍👩‍👧 是用零宽连接符连起来的 5 个码位,🇹🇼 是两个区域指示符。本页按 Unicode 规则(UAX #29,即浏览器的 Intl.Segmenter)切分字素,所以这些都算 1 个,不会被拆开。A grapheme (grapheme cluster) is one user-perceived character, which can be made of several code points: é can be e plus a combining accent, 👨‍👩‍👧 is five code points joined by zero-width joiners, and 🇹🇼 is two regional indicators. This page splits graphemes with the Unicode rules (UAX #29, the browser's Intl.Segmenter), so each of these counts as 1 and is never broken apart.

输入和输出是什么样的?What does the input and output look like?

例如在「排序 Unicode 字素」中输入 cba,「排序方式」设为 码位,输出为:abc。For example, the Sort Graphemes turns the input cba, "Sort by" set to Code point into: abc.

有哪些选项可以调整?What options can I adjust?

「排序 Unicode 字素」的设置:「排序方式」可选 本地化、码位(默认 本地化);「连接符」可留空;可勾选:「降序」。每次生成结果都按当前设置处理。Settings in the Sort Graphemes — "Sort by": Locale, Code point (default Locale); "Joiner" optional; tick boxes: "Descending". The result always uses the current settings.

处理大段文本会卡吗?Can it handle long text?

「排序 Unicode 字素」在浏览器中直接处理,几 MB 以内的文本通常瞬间完成;文本不会离开你的设备。The Sort Graphemes runs in your browser; text up to a few MB is usually processed instantly and never leaves your device.

「排序 Unicode 字素」免费吗?需要注册吗?Is the Sort Graphemes free? Do I need an account?

「排序 Unicode 字素」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Sort Graphemes is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

🧩 提取 Unicode 字素Extract Unicode Graphemes✂️ 拆成 Unicode 字符Split Unicode Into Characters🧱 拆成 Unicode 片段Split Unicode Into Fragments🎭 伪装 Unicode 文本Spoof Unicode Text✂️ 截断 Unicode 文本Truncate Unicode🔓 还原伪装 UnicodeUnspoof Unicode Text🔡 UTF-8 文本转小写Convert UTF-8 to Lowercase🔠 UTF-8 文本转大写Convert UTF-8 to Uppercase🔀 随机大小写 UTF-8Randomize UTF-8 Case🧾 从 JSON 提取文本Extract Text from JSON📏 计算文本长度Find the Length of Text🔢 去除行号Remove Line Numbers

← 全部工具All tools