From 049481bfbf32db83560c535d3d1f725f906879cc Mon Sep 17 00:00:00 2001 From: Shi Yao Wang Date: Mon, 4 Jul 2022 09:18:51 -0400 Subject: [PATCH] Bug 29922: (follow-up) Remove extra sort Remove wrong sort in staff advanced search page Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 15918c33701fe2cf3b84e568bb9bd16b328f172f) Signed-off-by: Lucas Gass (cherry picked from commit c41dba3eba2ce4baf8ddbd7df087a52c14f07c4d) Signed-off-by: Arthur Suzuki --- catalogue/search.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 5da9c063f3..b30d2edbc3 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -231,8 +231,7 @@ if($cgi->cookie("intranet_bib_list")){ } my @search_groups = - Koha::Library::Groups->get_search_groups( { interface => 'staff' } ); -@search_groups = sort { $a->title cmp $b->title } @search_groups; + Koha::Library::Groups->get_search_groups( { interface => 'staff' } )->as_list; $template->param( search_groups => \@search_groups, -- 2.39.5