File manager name sorting breaks on zero-padded / hexadecimal filenames (e.g., 12A sorted before 129)
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- desktop
调研方向
找到文件管理器按名称排序的入口点,并检查它如何比较文件名,尤其是是否采用数字感知排序。使用 issue 中的十六进制名称复现问题,包括 0000000100000129... 和 000000010000012A00000001。对于这些固定长度的名称,升序结果与 ASCII 字典序一致时,即为完成。
由索引模型根据 Issue 内容生成。
描述
What happened?
When sorting files by Name in ascending order in the file manager, fixed-length filenames containing leading zeros and hexadecimal characters (0-9, A-F) are sorted in an incorrect order.
Steps to reproduce
- Open a directory containing fixed-length hexadecimal filenames (such as a PostgreSQL WAL archive directory with 16 MB, 24-character hex filenames) in list view.
- Click the Name column header to sort in ascending order.
- Observe the top of the file list: 000000010000012A00000000 appears first, followed by 000000010000012A0000000A and 000000010000012A000000A0.
- Files containing 129 (e.g., 0000000100000129...) as well as 000000010000012A00000001 exist in the folder, but are pushed further down the list instead of appearing before 12A00000000 or 12A000000A0.
What did you expect?
Fixed-length zero-padded and hexadecimal filenames should be sorted in proper lexicographical (ASCII) order:
0000000100000129... should appear before 000000010000012A00000000.
000000010000012A00000001 should appear before 000000010000012A0000000A and 000000010000012A000000A0.
Termix version
26.10.5
Platform
Desktop app (Windows)
Server install
Desktop app (built-in server)
Environment
No response
Logs
Anything else?
No response
Before you submit
- I searched open and closed issues and this is not a duplicate
- I am on the latest version, or I said which version I am on
- 主要语言
- TypeScript
- 星标
- 1
- 派生
- 3
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Termix-SSH/Plugin-File-Manager 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
Termix-SSH/Plugin-File-Manager#17 · 1 条评论 ·
-
bug platform-desktop platform-docker
难度 2/5 1-3 小时 新手友好度 65/100
Termix-SSH/Plugin-File-Manager#16 · 2 条评论 ·
-
bug platform-desktop platform-docker
难度 2/5 1-3 小时 新手友好度 66/100
Termix-SSH/Plugin-File-Manager#15 · 2 条评论 ·
-
bug platform-docker
难度 4/5 3-5 天 新手友好度 45/100
Termix-SSH/Plugin-File-Manager#18 · 1 条评论 ·
-
bug
难度 3/5 1-2 天 新手友好度 60/100
Termix-SSH/Plugin-File-Manager#14 · 1 条评论 ·
查看 Termix-SSH/Plugin-File-Manager 的全部 Issue
相似的 Issue
-
e2e-failure ready-to-code
难度 1/5 1 小时以内 新手友好度 82/100
redhat-developer/rhdh-plugin-export-overlays#4616 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
ai-handle
难度 2/5 1-3 小时 新手友好度 72/100
nextlevelbuilder/dewee-web-v2#73 ·
维护者通常 1 天内回复
-
backend bug good first issue
难度 2/5 1-3 小时 新手友好度 70/100
PoCInnovation/Distribox#255 ·
维护者通常 1 天内回复