Skip to content

Commit

Permalink
Ensure insensitive sort for any character set
Browse files Browse the repository at this point in the history
  • Loading branch information
ylavoie committed Oct 30, 2022
1 parent a9e296d commit c1a8540
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion old/lib/LedgerSMB/DBObject/User.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package LedgerSMB::DBObject::User;

use strict;
use warnings;
use feature 'fc';

use base qw(LedgerSMB::PGOld);

Expand Down Expand Up @@ -128,7 +129,7 @@ sub get_option_data {

$self->{cssfiles} = [];
opendir CSS, "UI/css/.";
for my $opt (grep /.*\.css$/, sort readdir CSS){
for my $opt (grep /.*\.css$/, sort { fc($a) cmp fc($b) } readdir CSS){
push @{$self->{cssfiles}}, {file => $opt};
}
closedir CSS;
Expand Down

0 comments on commit c1a8540

Please sign in to comment.