From 33934f9dba130bb5de7d758b73df308ab71f2efd Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 10 Jun 2020 10:58:25 +0000 Subject: [PATCH] Bug 25701: Remove sort on removed field Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart (cherry picked from commit 35bb41dfc14603d85a6ddb85fec9b4de8d1a4001) Signed-off-by: Lucas Gass (cherry picked from commit 2605cbb912a6259c46e9083789100577a02e498e) Signed-off-by: Aleisha Amohia --- C4/Search.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 7f69feb59f..b6da30d4f0 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -625,7 +625,6 @@ sub getRecords { foreach my $f (@facets_loop) { $f->{facets} = [ sort { uc($a->{facet_label_value}) cmp uc($b->{facet_label_value}) } @{ $f->{facets} } ]; } - @facets_loop = sort {$a->{expand} cmp $b->{expand}} @facets_loop; } return ( undef, $results_hashref, \@facets_loop ); -- 2.39.5