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

Secondary sorting is ineffective for entries with the same displayed install date

Đang mở Phù hợp với người mới
#460 0 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
74/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ệ
csharp
Lĩnh vực
desktop

Hướng nghiên cứu

Tìm cột lưới được liên kết với InstallDate và định dạng bằng Language.Date_Format ({0:d}), sau đó so sánh khóa sắp xếp của cột này với logic nhóm hiện có sử dụng InstallDate?.Date. Trước tiên, hãy tìm các tham chiếu đó trong dự án. Công việc được xem là hoàn tất khi việc sắp xếp theo Ngày cài đặt rồi đến Phiên bản sắp xếp các mục có cùng ngày hiển thị theo phiên bản, đồng thời vẫn giữ nguyên cách hiển thị ngày.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Title

Secondary sorting is ineffective for entries with the same displayed install date

Description

The Install Date column displays only the date, but sorting uses the full timestamp, including the time and fractional seconds.

As a result, entries with the same displayed install date are ordered by their hidden timestamps. A secondary sort criterion, such as Version, is only applied when the full timestamps match exactly.

This makes it difficult to sort drivers by install date and then by version within each day.

Steps to reproduce

  1. Find multiple driver entries with the same displayed Install Date but different versions.
  2. Click the Install Date column header to sort in ascending order.
  3. Hold Shift and click the Version column header to set version as the secondary sort criterion in ascending order.

Expected behavior

Entries with the same displayed install date should be sorted by version in ascending order.

For example:

Install Date Version
2026/10/06 1.0
2026/10/06 2.0
2026/10/06 3.0

Actual behavior

Entries are sorted by their full install timestamps, even though the time is not displayed. Version sorting only takes effect when those timestamps match exactly.

For example, entries with these underlying values would appear in this order:

Displayed Install Date Hidden Time Version
2026/10/06 09:00:00 3.0
2026/10/06 10:00:00 1.0
2026/10/06 11:00:00 2.0

Although all three entries display the same install date, they are not ordered by version.

Implementation details

The column is bound to InstallDate and formatted using Language.Date_Format ({0:d}), which displays only the date. Sorting therefore compares the full DateTime value rather than the displayed date.

The grouping logic already uses InstallDate?.Date, so grouping and sorting use different levels of precision.

Suggested improvement

Use the date-only value (InstallDate?.Date) as the sort key for the Install Date column, so that secondary sorting applies to entries installed on the same day.

Ngôn ngữ chính
C#
Star
11.8k
Fork
557
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 lostindark/DriverStoreExplorer

Tất cả issue của lostindark/DriverStoreExplorer

Issue tương tự

Thêm issue về C#

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.