diff --git a/app/models/type_de_champ.rb b/app/models/type_de_champ.rb index c857ecdfe..550bdfdbc 100644 --- a/app/models/type_de_champ.rb +++ b/app/models/type_de_champ.rb @@ -555,7 +555,7 @@ class TypeDeChamp < ApplicationRecord def options_for_select if departement? - APIGeoService.departements.map { ["#{_1[:code]} – #{_1[:name]}", _1[:code]] } + APIGeoService.departements.map { ["#{_1[:code]} – #{_1[:name]}", _1[:code]] }.sort elsif region? APIGeoService.regions.map { [_1[:name], _1[:code]] } elsif choice_type?