display tdc alphabetically 🎉
This commit is contained in:
parent
f55db98e97
commit
6eb10ecde5
1 changed files with 1 additions and 0 deletions
|
@ -303,6 +303,7 @@ class TypeDeChamp < ApplicationRecord
|
||||||
.filter(&show_number)
|
.filter(&show_number)
|
||||||
.filter(&enabled_featured_champ)
|
.filter(&enabled_featured_champ)
|
||||||
.map { |tdc| [I18n.t("activerecord.attributes.type_de_champ.type_champs.#{tdc}"), tdc] }
|
.map { |tdc| [I18n.t("activerecord.attributes.type_de_champ.type_champs.#{tdc}"), tdc] }
|
||||||
|
.sort_by(&:first)
|
||||||
end
|
end
|
||||||
|
|
||||||
TYPES_DE_CHAMP_BASE = {
|
TYPES_DE_CHAMP_BASE = {
|
||||||
|
|
Loading…
Reference in a new issue