Options for select_tolk_locale_name sorted by ISO 639-1:2002, instead of language name #4

jangerrit opened this Issue May 7, 2010 · 1 comment

2 participants


Options are sorted by the last array value for each locale mapping. That’s confusing, because Chinese (‘zw’) is sorted last, instead of between ‘Catalan’ and ‘Croatian’, as the user expects. Fix:

app/helpers/application_helper.rb (25):
pairs = pairs.sort_by(&:first)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment