Skip to content

Truncate the date properties to the day so the columns sort as they display - #478

Merged
lostindark merged 1 commit into
lostindark:masterfrom
amnesiaof:fix/install-date-sort
Oct 13, 2026
Merged

lostindark merged 1 commit into
lostindark:masterfrom
amnesiaof:fix/install-date-sort

Conversation

@amnesiaof

Copy link
Copy Markdown
Contributor

The Date and Install Date columns format their values with Language.Date_Format, which is {0:d}, and grouping in DSEForm already used InstallDate?.Date. Both properties kept the full timestamp that DEVPKEY_DriverPackage_DriverDate and DEVPKEY_DriverPackage_ImportDate report, and ObjectListView sorts the raw value.

Two entries from the same day at 08:15 and 23:45 therefore never compared equal, so Shift-clicking a second sort column changed nothing for anything sharing a day. That is the case in the issue.

DriverDate and InstallDate now truncate to the day on assignment. No consumer wanted the time: both columns use the format string, grouping uses .Date and the CSV export uses "d".

New test RaprTests/DriverStoreEntryTests.cs covers both properties, including SetDriverDateAndVersion, and asserts that a same-day tie keeps the order ObjectListView hands to the secondary column.

Closes #460

…display

The Date and Install Date columns format with Language.Date_Format, which is {0:d},
and grouping already used InstallDate?.Date, but both properties kept the full
timestamp that DEVPKEY_DriverPackage_DriverDate and _ImportDate report. ObjectListView
sorts the raw value, so two entries sharing a day never compared equal and
Shift-clicking a second column did nothing for them.

Closes lostindark#460
@lostindark
lostindark merged commit 46db61d into lostindark:master Oct 13, 2026
2 checks passed
@amnesiaof
amnesiaof deleted the fix/install-date-sort branch October 13, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants