Skip to content

Fix remaining formatted duration columns sorting alphabetically#457

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/remaining-formatted-column-sort
Mar 6, 2026
Merged

Fix remaining formatted duration columns sorting alphabetically#457
erikdarlingdata merged 1 commit intodevfrom
fix/remaining-formatted-column-sort

Conversation

@erikdarlingdata
Copy link
Owner

Summary

Adds SortMemberPath to 7 DataGrid columns that display formatted durations with mixed units, ensuring they sort by their underlying numeric value instead of alphabetically. Follow-up to PR #452 by @dphugo which fixed the Collection Health columns.

Columns fixed

Grid Column Formatted Property Numeric Property
Active Queries Elapsed ElapsedTimeFormatted TotalElapsedTimeMs
Blocked Process Reports Wait Time WaitTimeFormatted WaitTimeMs
Running Jobs Current Duration CurrentDurationFormatted CurrentDurationSeconds
Running Jobs Avg Duration AvgDurationFormatted AvgDurationSeconds
Running Jobs P95 Duration P95DurationFormatted P95DurationSeconds
Daily Summary Total Wait TotalWaitFormatted TotalWaitTimeSec
Wait Drill-Down Elapsed ElapsedTimeFormatted TotalElapsedTimeMs

Not changed: Deadlock grid WaitTimeFormatted — always displays "ms" (no mixed units), sorts correctly as-is.

Test plan

  • Build with zero errors
  • Click column headers on each affected grid to verify sort order is numeric

Closes #455

🤖 Generated with Claude Code

Add SortMemberPath to 7 DataGrid columns that display formatted
durations with mixed units (ms/sec, s/m/h, s/min), ensuring they
sort by their underlying numeric value instead of alphabetically.

Columns fixed:
- Active Queries: ElapsedTimeFormatted → TotalElapsedTimeMs
- Blocked Process Reports: WaitTimeFormatted → WaitTimeMs
- Running Jobs: CurrentDurationFormatted → CurrentDurationSeconds
- Running Jobs: AvgDurationFormatted → AvgDurationSeconds
- Running Jobs: P95DurationFormatted → P95DurationSeconds
- Daily Summary: TotalWaitFormatted → TotalWaitTimeSec
- Wait Drill-Down: ElapsedTimeFormatted → TotalElapsedTimeMs

Closes #455

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 99c1327 into dev Mar 6, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/remaining-formatted-column-sort branch March 6, 2026 23:59
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.

1 participant