Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return 0 in compare function of sortBlocks when blocks are equal #2026

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

achille-roussel
Copy link
Collaborator

Follow-up to #2024; it's possible that this isn't important, but it could prevent pathological cases where the sort algorithm gets confused because the compare function doesn't provide total ordering.

Copy link
Member

@mathetake mathetake left a comment

Choose a reason for hiding this comment

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

💯

@mathetake mathetake merged commit 0dc51ae into main Feb 8, 2024
62 checks passed
@mathetake mathetake deleted the sortBlocks-zero-on-equal branch February 8, 2024 02:17
@ncruces ncruces changed the title return 0 is compare function of sortBlocks when blocks are equal return 0 in compare function of sortBlocks when blocks are equal Feb 8, 2024
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.

2 participants