From 35bb41dfc14603d85a6ddb85fec9b4de8d1a4001 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 --- C4/Search.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 9d4f64e268..8997dba064 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -599,7 +599,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 {defined $a->{expand} && defined $b->{expand} && $a->{expand} cmp $b->{expand}} @facets_loop; } return ( undef, $results_hashref, \@facets_loop ); -- 2.39.5