Skip to content

Commit

Permalink
Sort languages by the name
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed May 8, 2010
1 parent e0c7296 commit a4dee96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/tolk/application_helper.rb
Expand Up @@ -22,7 +22,7 @@ def yaml_value(value)
def tolk_locale_selection
existing_locale_names = Tolk::Locale.all.map(&:name)
pairs = Tolk::Locale::MAPPING.to_a.map(&:reverse)
pairs = pairs.sort_by(&:last)
pairs = pairs.sort_by(&:first)
pairs.reject do |pair|
existing_locale_names.include? pair.last
end
Expand Down

0 comments on commit a4dee96

Please sign in to comment.