Bug fixing : 2516
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Fri, 29 Aug 2008 16:15:20 +0000 (18:15 +0200)
committerGalen Charlton <galen.charlton@liblime.com>
Tue, 2 Sep 2008 22:50:41 +0000 (17:50 -0500)
There was a problem with names ordering in circ/circulation.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
circ/circulation.pl

index 36f0cdc..788f5ed 100755 (executable)
@@ -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
       )
     {