File manager name sorting breaks on zero-padded / hexadecimal filenames (e.g., 12A sorted before 129)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- desktop
Hướng nghiên cứu
Tìm điểm bắt đầu của chức năng sắp xếp theo tên trong trình quản lý tệp và kiểm tra cách chức năng này so sánh tên tệp, đặc biệt là liệu nó có áp dụng kiểu sắp xếp nhận biết số hay không. Tái hiện lỗi bằng các tên hệ thập lục phân trong issue, bao gồm 0000000100000129... và 000000010000012A00000001. Hoàn tất khi thứ tự tăng dần của các tên có độ dài cố định này khớp với thứ tự từ điển ASCII.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 3
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Termix-SSH/Plugin-File-Manager
-
bug platform-desktop platform-docker
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Termix-SSH/Plugin-File-Manager#21 · 2 bình luận ·
-
feature platform-desktop platform-windows
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Termix-SSH/Plugin-File-Manager#3 · 2 bình luận ·
-
[FEATURE] FTP supportĐang mởfeature platform-web
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Termix-SSH/Plugin-File-Manager#5 · 5 bình luận ·
Tất cả issue của Termix-SSH/Plugin-File-Manager
Issue tương tự
-
b:minor bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
software-mansion/argent#1698 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
e2e-failure ready-to-code
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
better-auth/better-auth#12132 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automation missing-model model-sync provider:tinfoil
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/models.dev#12053 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hurttlocker/o8#5112 ·