文本排序
UpBox优盒工具箱,免费在线文本排序工具,按文字、数字或长度对多行文本升降序排列,支持去重、忽略大小写、去空行、随机打乱与导出。
无需注册 · 数据不上传No sign-up · nothing uploaded
输入文本Input
结果Result
行数0
唯一行0
字符数0
输入文本后可排序,重复点击可用新参数再排一次
数字排序会把无法解析的行放到末尾;长度排序先比字符数,再按文字比较
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器
工具介绍
整理名单、日志或关键词时,顺序往往比内容更碍事。这里按文字、数字或长度重排,数字模式会按数值大小而不是首位字符,100 不会排在 7 前面。 Order is often more annoying than content when cleaning lists, logs or keyword sets. Sort by text, number or length — number mode ranks by value, so 100 does not land before 7.
同一份内容可以叠加去重、忽略大小写和去空行,排序结果可以再次随机打乱或整体反转,用来抽查或做抽样顺序都方便。 Dedupe, case-insensitive and blank-line removal stack on the same pass; the result can be shuffled or reversed to sample or reorder it.
- 三种排序依据Three sort keys
- 升降序切换Ascending or descending
- 去重与去空行Dedupe and drop blanks
- 随机打乱Shuffle
- 复制与下载Copy and download
使用说明
- 粘贴多行文本。Paste the lines.
- 选择排序方式与顺序。Choose the key and direction.
- 按需勾选去重等选项。Tick dedupe and similar options.
- 排序后复制或下载。Sort, then copy or download.
常见问题
数字排序支持小数和负数吗?Do decimals and negatives work?
支持,按数值大小比较;无法解析成数字的行统一放到末尾。Yes, values compare numerically; lines that are not numbers go last.
去重是按整行还是按词?Is dedupe per line?
按整行比较,勾选忽略大小写后 Apple 与 apple 视为同一行。Per line; with case-insensitive on, Apple and apple count as one.
会改变原文本吗?Does it alter the source?
不会,输入框保留原文,结果单独输出。No, the input keeps the original and the result is separate.
中文按什么顺序排?How are Chinese lines ordered?
按字符编码比较,不是按拼音,需要拼音排序请先自行转换。By character code, not pinyin — convert first if you need pinyin order.