.sort_by(&:downcase) where text is translated
Some checks failed
/ Run tests (push) Failing after 14s
/ Run system tests (push) Failing after 14s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-10-27 22:45:44 +01:00
parent 7589ff671c
commit 6e6235cea9
2 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ class Check < ApplicationRecord
def display_target_disabilities
%i[visual auditory physical cognitive].select { |d| send(:"#{d}?") }
.map { |d| I18n.t("disability.#{d}") }
.sort
.sort_by(&:downcase)
.join(", ")
end
@ -118,7 +118,7 @@ class Check < ApplicationRecord
applicable_to_non_web
applicable_to_web].select { |a| send(:"#{a}?") }
.map { |a| I18n.t("applicability.#{a}") }
.sort
.sort_by(&:downcase)
.join(", ")
end