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

Ordering items of equal priority by name #421

Closed
wants to merge 1 commit into from

Conversation

simonc
Copy link
Contributor

@simonc simonc commented Sep 29, 2022

When two navigation items have the same priority, it can result in random ordering, at least in development.

This PR orders them by name in case of equal priority so that the order is always the same.

When two navigation items have the same priority, it can result in random ordering, at least in development.

This PR orders them by name in case of equal priority so that the order is always the same.
@spohlenz
Copy link
Member

Thank you for the PR. I've merged (via cherry-pick) but have also added a spec, as well as simplifying the <=> using an array comparison.

@spohlenz spohlenz closed this Nov 16, 2022
@simonc simonc deleted the patch-1 branch November 16, 2022 14:19
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