From: Henri-Damien LAURENT Date: Fri, 29 Aug 2008 16:15:20 +0000 (+0200) Subject: Bug fixing : 2516 X-Git-Tag: v3.00.01.005~397 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=3fd62098cece586831ac8311d24cac348bfa0ae4;p=koha.git Bug fixing : 2516 There was a problem with names ordering in circ/circulation.pl Signed-off-by: Galen Charlton --- diff --git a/circ/circulation.pl b/circ/circulation.pl index fd33bae5a9..78e2ff9921 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -526,10 +526,7 @@ my %labels; my $CGIselectborrower; if ($borrowerslist) { foreach ( - sort { - lc $a->{'surname'} - . lc $a->{'firstname'} cmp lc $b->{'surname'} - . lc $b->{'firstname'} + sort {(lc $a->{'surname'} cmp lc $b->{'surname'} ?lc $a->{'surname'} cmp lc $b->{'surname'}:lc $a->{'firstname'} cmp lc $b->{'firstname'}) } @$borrowerslist ) {