From 36187ad39c64b23f59a6f2f5ce92d132828bb7c5 Mon Sep 17 00:00:00 2001 From: Sascha Karnatz <68833+kulturbande@users.noreply.github.com> Date: Sun, 11 Feb 2024 15:33:16 +0100 Subject: [PATCH] Sort the element Select List alphabetically At the moment the order of the elements are not in a specific order. It is easier to read if the order of the elements is alphabetically. --- app/helpers/alchemy/admin/elements_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/alchemy/admin/elements_helper.rb b/app/helpers/alchemy/admin/elements_helper.rb index 7c43670868..3a8173f506 100644 --- a/app/helpers/alchemy/admin/elements_helper.rb +++ b/app/helpers/alchemy/admin/elements_helper.rb @@ -18,7 +18,7 @@ def elements_for_select(elements) Element.display_name_for(e["name"]), e["name"] ] - end + end.sort end end end