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

(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-2 / +2 lines)
Lines 53-58 use MARC::Record; Link Here
53
use MARC::File::XML;
53
use MARC::File::XML;
54
use MIME::Base64 qw( decode_base64 );
54
use MIME::Base64 qw( decode_base64 );
55
use JSON;
55
use JSON;
56
use Unicode::Normalize;
56
57
57
Koha::SearchEngine::Elasticsearch::Search->mk_accessors(qw( store ));
58
Koha::SearchEngine::Elasticsearch::Search->mk_accessors(qw( store ));
58
59
Lines 503-509 sub _convert_facets { Link Here
503
        }
504
        }
504
        if( C4::Context->preference('FacetOrder') eq 'Alphabetical' ){
505
        if( C4::Context->preference('FacetOrder') eq 'Alphabetical' ){
505
            @{ $facet->{facets} } =
506
            @{ $facet->{facets} } =
506
                sort { $a->{facet_label_value} cmp $b->{facet_label_value} } @{ $facet->{facets} };
507
                sort { NFKD(uc($a->{facet_label_value})) cmp NFKD(uc($b->{facet_label_value})) } @{ $facet->{facets} };
507
        }
508
        }
508
        push @facets, $facet if exists $facet->{facets};
509
        push @facets, $facet if exists $facet->{facets};
509
    }
510
    }
510
- 

Return to bug 36947