Skip to content

Commit

Permalink
Merge pull request #38 from georgepalmer/master
Browse files Browse the repository at this point in the history
Return countries in alphabetical order in select
  • Loading branch information
stefanpenner committed Nov 6, 2013
2 parents f24a5f8 + 3ca648c commit b2709ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/country_select.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def country_options_for_select(selected = nil, priority_countries = nil, use_iso
::CountrySelect::COUNTRIES_FOR_SELECT
end

return country_options + options_for_select(values, selected)
return country_options + options_for_select(values.sort, selected)
end

# All the countries included in the country_options output.
Expand Down

0 comments on commit b2709ef

Please sign in to comment.