locale based sorting function in ruby

Posted by railscoder on Stack Overflow See other posts from Stack Overflow or by railscoder
Published on 2010-05-06T09:14:52Z Indexed on 2010/05/06 9:18 UTC
Read the original article Hit count: 283

Filed under:
|
|

For my application(Ruby on Rails) i have country select box for the signup page. These countries are localized into different language. But i couldnt find a way to sort them, based on the language in which its localized. At present i have sorted it out based on english only. Is there a way to sort the country names based on the locale? i.e the order of the countries should change(ascending order) according to the language its localised. Thanks..

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails