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

Changed Ord to have a more consistent order #579

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

mitsuhiko
Copy link
Owner

@mitsuhiko mitsuhiko commented Sep 16, 2024

This changes the order of Ord to order strictly by value type first. This now means that things order primarily by ValueType and secondarily by what the value type looks like.

This changes the order from earlier versions but addresses potential panics caused by the new sort function.

Fixes #577

@mitsuhiko mitsuhiko merged commit 1416e15 into main Sep 16, 2024
30 checks passed
@mitsuhiko mitsuhiko deleted the feature/consistent-order branch September 16, 2024 17:27
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.

Violation of PartialEq, Eq, PartialOrd and Ord contracts in minijinja::Value
1 participant