sort departement options
This commit is contained in:
parent
690d2c6258
commit
cd3e645046
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ class TypeDeChamp < ApplicationRecord
|
||||||
|
|
||||||
def options_for_select
|
def options_for_select
|
||||||
if departement?
|
if departement?
|
||||||
APIGeoService.departements.map { ["#{_1[:code]} – #{_1[:name]}", _1[:code]] }
|
APIGeoService.departements.map { ["#{_1[:code]} – #{_1[:name]}", _1[:code]] }.sort
|
||||||
elsif region?
|
elsif region?
|
||||||
APIGeoService.regions.map { [_1[:name], _1[:code]] }
|
APIGeoService.regions.map { [_1[:name], _1[:code]] }
|
||||||
elsif choice_type?
|
elsif choice_type?
|
||||||
|
|
Loading…
Reference in a new issue