From 0d4ab0ecb65dd92f785b062e2dbe920bc8e1bfcf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= Date: Thu, 24 Feb 2011 12:30:09 -0500 Subject: [PATCH] Bug 3580 Sort the facets categories so they don't move every search. Signed-off-by: Paul Poulain Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- opac/opac-search.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 68018b6c36..9b78069df8 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -431,6 +431,7 @@ if ($facets) { foreach my $f (@$facets) { $f->{facets} = [ sort { uc($a->{facet_title_value}) cmp uc($b->{facet_title_value}) } @{ $f->{facets} } ]; } + @$facets = sort {$a->{expand} cmp $b->{expand}} @$facets; } # use Data::Dumper; print STDERR "-" x 25, "\n", Dumper($results_hashref); -- 2.39.5