display tdc alphabetically 🎉

This commit is contained in:
simon lehericey 2021-09-27 14:35:14 +02:00
parent f55db98e97
commit 6eb10ecde5

View file

@ -303,6 +303,7 @@ class TypeDeChamp < ApplicationRecord
.filter(&show_number)
.filter(&enabled_featured_champ)
.map { |tdc| [I18n.t("activerecord.attributes.type_de_champ.type_champs.#{tdc}"), tdc] }
.sort_by(&:first)
end
TYPES_DE_CHAMP_BASE = {