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
Is:
%w(Birnen Äpfel Zitronen).natural_sort => ["Birnen", "Zitronen", "Äpfel"]
Correct would be:
%w(Birnen Äpfel Zitronen).natural_sort => ["Äpfel", "Birnen", "Zitronen"]
The text was updated successfully, but these errors were encountered:
I imagine this affects any type of accent. I'd accept a PR for this if it is generic.
Sorry, something went wrong.
This works if you have ActiveSupport:
%w(Birnen Äpfel Zitronen).sort do |a, b| NaturalSort.comparator( ActiveSupport::Inflector.transliterate(a), ActiveSupport::Inflector.transliterate(b) ) end
No branches or pull requests
Is:
Correct would be:
The text was updated successfully, but these errors were encountered: