Sorting UTF-8 strings in RoR

前端 未结 7 914
暗喜
暗喜 2020-12-09 18:12

I am trying to figure out a \'proper\' way of sorting UTF-8 strings in Ruby on Rails.

In my application, I have a select box that is populated with countries. As my

7条回答
  •  旧时难觅i
    2020-12-09 18:31

    http://github.com/grosser/sort_alphabetical

    This gem should help. It adds sort_alphabetical and sort_alphabetical_by methods to Enumberable.

提交回复
热议问题