字母排序助手 | 快速整理字母顺序
字母排序助手可高效按字母顺序排列任意列表,适用于学术写作、姓名列表和数据整理。
使用方法
1. 在输入区域输入或粘贴您的文本
2. 选择您的排序选项
3. 选择输入和输出格式
4. 点击“排序文本”进行处理
主要特点
Multiple sorting options (A-Z, Z-A)
Case sensitive/insensitive sorting
Flexible input formats
Duplicate removal
常见用例
Organizing contact lists and directories
Sorting product catalogs
Arranging bibliographies and references
Managing inventory lists
从你的AI智能体调用此工具
免费的JSON API和Model Context Protocol (MCP) 服务器。无需注册、无需API密钥、CORS开放。专为Claude、ChatGPT、Cursor、脚本和前端应用设计。
curl -X POST https://mate.tools/api/v1/sort-lines.php \
-H "Content-Type: application/json" \
-d '{"text":"banana\napple\ncherry","order":"asc"}' import urllib.request, json
req = urllib.request.Request(
"https://mate.tools/api/v1/sort-lines.php",
data=json.dumps({"text":"banana\napple\ncherry","order":"asc"}).encode(),
headers={"Content-Type": "application/json"},
)
with urllib.request.urlopen(req) as r:
print(json.load(r)) const r = await fetch("https://mate.tools/api/v1/sort-lines.php", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({"text":"banana\napple\ncherry","order":"asc"}),
});
console.log(await r.json()); 添加到 claude_desktop_config.json(Claude Desktop)、~/.cursor/mcp.json(Cursor)或任何其他MCP兼容客户端:
{
"mcpServers": {
"mate-tools": {
"command": "npx",
"args": ["-y", "@mate-tools/mcp-server"]
}
}
} 常见问题
区分大小写的排序将大写和小写字母视为不同的字符。例如,“Apple”会在“banana”之前,因为大写字母在排序时排在小写字母之前。
当勾选“移除重复项”时,相同的项目在输出中只会出现一次。这对于创建干净、独特的列表很有用。
可以,该工具使用自然排序来处理数字。这意味着“2”会排在“10”之前,而不是像文本排序那样“10”会先出现。
“去除 HTML”选项会移除文本中的所有 HTML 标签,同时保留标签内的内容。例如,“
Hello
”变成“Hello”。 使用“忽略标点符号”选项可以在不考虑特殊字符的情况下进行排序。这有助于创建更自然的排序结果。