https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36947

--- Comment #32 from Lari Strand <lmstr...@gmail.com> ---
This seems to achieve the same result as use locale (when LC_COLLATE is set to
"fi_FI"):

        if( C4::Context->preference('FacetOrder') eq 'Alphabetical' ){
            my $coll = Unicode::Collate::Locale->new( locale => "fi_FI" );
            @{ $facet->{facets} } =
                sort { $coll->cmp ($a->{facet_label_value},
$b->{facet_label_value}) } @{ $facet->{facets} };
        }
        push @facets, $facet if exists $facet->{facets};

Should the collator be configurable in Koha or were you thinking of using the
selected UI language for sorting somehow here?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to