Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

已关闭 适合新手
#460 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@amnesiaof 已经在做这个了。

开始于 2026年10月11日。

  • #478 来自 @amnesiaof —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
74/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp
领域
desktop

调研方向

找到绑定到 InstallDate 并使用 Language.Date_Format ({0:d}) 格式化的网格列,然后将其排序键与使用 InstallDate?.Date 的现有分组逻辑进行比较。首先在项目中定位这些引用。完成标准是:按安装日期、再按版本排序时,显示日期相同的条目按版本排序,同时保留日期显示方式。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C#
星标
11.9k
派生
563
平均合并
19 小时 32 分钟
30 天内合并 PR
13

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lostindark/DriverStoreExplorer 的其他 Issue

查看 lostindark/DriverStoreExplorer 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。