Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

File manager name sorting breaks on zero-padded / hexadecimal filenames (e.g., 12A sorted before 129)

Đã đóng Phù hợp với người mới
#19 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

bug platform-desktop
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
  1. 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.
  2. Click the Name column header to sort in ascending order.
  3. Observe the top of the file list: 000000010000012A00000000 appears first, followed by 000000010000012A0000000A and 000000010000012A000000A0.
  4. 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Termix-SSH/Plugin-File-Manager

Tất cả issue của Termix-SSH/Plugin-File-Manager

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.