View | Details | Raw Unified | Return to bug 14371
Collapse All | Expand All

(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 536-542 eval { Link Here
536
# This sorts the facets into alphabetical order
536
# This sorts the facets into alphabetical order
537
if ($facets) {
537
if ($facets) {
538
    foreach my $f (@$facets) {
538
    foreach my $f (@$facets) {
539
        $f->{facets} = [ sort { uc($a->{facet_title_value}) cmp uc($b->{facet_title_value}) } @{ $f->{facets} } ];
539
        $f->{facets} = [ sort { uc($a->{facet_label_value}) cmp uc($b->{facet_label_value}) } @{ $f->{facets} } ];
540
    }
540
    }
541
}
541
}
542
if ($@ || $error) {
542
if ($@ || $error) {
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 579-585 if ($tag) { Link Here
579
# This sorts the facets into alphabetical order
579
# This sorts the facets into alphabetical order
580
if ($facets) {
580
if ($facets) {
581
    foreach my $f (@$facets) {
581
    foreach my $f (@$facets) {
582
        $f->{facets} = [ sort { uc($a->{facet_title_value}) cmp uc($b->{facet_title_value}) } @{ $f->{facets} } ];
582
        $f->{facets} = [ sort { uc($a->{facet_label_value}) cmp uc($b->{facet_label_value}) } @{ $f->{facets} } ];
583
    }
583
    }
584
    @$facets = sort {$a->{expand} cmp $b->{expand}} @$facets;
584
    @$facets = sort {$a->{expand} cmp $b->{expand}} @$facets;
585
}
585
}
586
- 

Return to bug 14371