BUGFIX (minor)
authorPaul POULAIN <paul@koha-fr.org>
Sun, 30 Sep 2007 20:22:34 +0000 (22:22 +0200)
committerChris Cormack <crc@liblime.com>
Sun, 30 Sep 2007 21:03:35 +0000 (16:03 -0500)
authority list ordering was bugguy

Signed-off-by: Chris Cormack <crc@liblime.com>
authorities/authorities-home.pl
opac/opac-authorities-home.pl

index bd89d0d..cccab21 100755 (executable)
@@ -40,7 +40,7 @@ my ( $template, $loggedinuser, $cookie );
 
 my $authtypes = getauthtypes;
 my @authtypesloop;
-foreach my $thisauthtype ( sort { $authtypes->{$a} <=> $authtypes->{$b} }
+foreach my $thisauthtype ( sort { $authtypes->{$a}{'authtypetext'} cmp $authtypes->{$b}{'authtypetext'} }
     keys %$authtypes )
 {
     my $selected = 1 if $thisauthtype eq $authtypecode;
index 158bfbb..9076bff 100755 (executable)
@@ -42,7 +42,7 @@ my $resultsperpage;
 
 my $authtypes = getauthtypes;
 my @authtypesloop;
-foreach my $thisauthtype ( sort { $authtypes->{$a} <=> $authtypes->{$b} }
+foreach my $thisauthtype ( sort { $authtypes->{$a}{'authtypetext'} cmp $authtypes->{$b}{'authtypetext'} }
     keys %$authtypes )
 {
     my $selected = 1 if $thisauthtype eq $authtypecode;