Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ["Łotwa", "Luksemburg", "Anglia"].sort_by{|x| ActiveSupport::Inflector.transliterate(x)}
- ["Anglia", "Łotwa", "Luksemburg"]
- ["Anglia", "Luksemburg", "Łotwa"]
- https://github.com/grosser/sort_alphabetical
- https://github.com/jarib/ffi-icu
- ▶ require 'unicode_utils'
- # => true
- ▶ ["Łotwa", "Luksemburg", "Anglia"].sort
- # => [
- [0] "Anglia",
- [1] "Luksemburg",
- [2] "Łotwa"
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement