From e94bbcf54da265b20842b3fd3341f2a34e6b8666 Mon Sep 17 00:00:00 2001 From: Zita Nemeckova Date: Wed, 31 Jul 2019 14:27:57 +0200 Subject: [PATCH] Fix button sets order in tree Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1665031 --- app/presenters/tree_builder_generic_object_definition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/presenters/tree_builder_generic_object_definition.rb b/app/presenters/tree_builder_generic_object_definition.rb index 4d0d8a9a666..97782b19cb8 100644 --- a/app/presenters/tree_builder_generic_object_definition.rb +++ b/app/presenters/tree_builder_generic_object_definition.rb @@ -24,7 +24,7 @@ def x_get_god_kids(object, count_only) end def x_get_actions_kids(object, count_only) - count_only_or_objects(count_only, object[:object].custom_button_sets + object[:object].custom_buttons, :name) + count_only_or_objects(count_only, object[:object].custom_button_sets.sort_by(&:name) + object[:object].custom_buttons) end def tree_init_options