diff --git a/catalogue/search.pl b/catalogue/search.pl index 4d165ace7c..006a1d45b9 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -536,7 +536,7 @@ eval { # This sorts the facets into alphabetical order if ($facets) { foreach my $f (@$facets) { - $f->{facets} = [ sort { uc($a->{facet_title_value}) cmp uc($b->{facet_title_value}) } @{ $f->{facets} } ]; + $f->{facets} = [ sort { uc($a->{facet_label_value}) cmp uc($b->{facet_label_value}) } @{ $f->{facets} } ]; } } if ($@ || $error) { diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 2c4e34e2fd..81f2bbb4ef 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -579,7 +579,7 @@ if ($tag) { # This sorts the facets into alphabetical order if ($facets) { foreach my $f (@$facets) { - $f->{facets} = [ sort { uc($a->{facet_title_value}) cmp uc($b->{facet_title_value}) } @{ $f->{facets} } ]; + $f->{facets} = [ sort { uc($a->{facet_label_value}) cmp uc($b->{facet_label_value}) } @{ $f->{facets} } ]; } @$facets = sort {$a->{expand} cmp $b->{expand}} @$facets; }