We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We have a lot of arrays that we are sorting before presenting to a user. Since it's a Swedish app we are using the following code:
lhs.localeCompare(rhs, 'sv-SE', { numeric: true, sensitivity: 'accent' })
It would be great if there was a way to pass these options into the localeCompare call inside sort-on.
localeCompare
sort-on
If you have any input on how the api would look I'd be happy to submit a PR 🚀
The text was updated successfully, but these errors were encountered:
Maybe a locales and localeOptions options where the latter is just passing through http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator#options ?
locales
localeOptions
Alternatively, move locales into the the localeOptions, but that may make it harder to document and type.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
We have a lot of arrays that we are sorting before presenting to a user. Since it's a Swedish app we are using the following code:
It would be great if there was a way to pass these options into the
localeCompare
call insidesort-on
.If you have any input on how the api would look I'd be happy to submit a PR 🚀
The text was updated successfully, but these errors were encountered: