Skip to content

fix issue 167 where total ordering wasn't being returned and now requ…#168

Merged
bvaisvil merged 3 commits intomasterfrom
fix_issue_167
Nov 14, 2025
Merged

fix issue 167 where total ordering wasn't being returned and now requ…#168
bvaisvil merged 3 commits intomasterfrom
fix_issue_167

Conversation

@bvaisvil
Copy link
Owner

…ired for newer versions of rustc

@bvaisvil bvaisvil self-assigned this Nov 14, 2025
ProcessTableSortBy::Priority => |pa, pb, _tick| pa.priority.cmp(&pb.priority),
ProcessTableSortBy::Nice => {
|pa, pb, _tick| pa.priority.partial_cmp(&pb.nice).unwrap_or(Equal)
|pa, pb, _tick| pa.nice.cmp(&pb.nice)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the actual source of this bug was comparing nice vs priority.

@bvaisvil bvaisvil merged commit b2c38b9 into master Nov 14, 2025
4 checks passed
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