-
Notifications
You must be signed in to change notification settings - Fork 17
enhance(sidebar): make natural sort the default #225
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, reviewed the diff.
let locale = locale!("en-US").into(); | ||
let mut options = CollatorOptions::new(); | ||
pub static COLLATOR: CollatorBorrowed<'static> = { | ||
let mut prefs = CollatorPreferences::from(locale!("en-US")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to use the right locale for translated content, but that's an independent enhancement.
let mut prefs = CollatorPreferences::from(locale!("en-US")); | ||
prefs.numeric_ordering = Some(CollationNumericOrdering::True); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw in previous icu_collator versions, this was a collator option, rather than a preference.
Description
Updates the
listSubPages
sidebar template to use natural sorting.Motivation
Ensures that Firefox release notes pages are properly sorted.
Additional details
Related issues and pull requests
Fixes #222.