sorting authority list
authorpaul <paul.poulain@biblibre.com>
Fri, 20 Jun 2008 10:34:46 +0000 (12:34 +0200)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 20 Jun 2008 13:53:08 +0000 (08:53 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
authorities/detail.pl

index 425b155..5a2456b 100755 (executable)
@@ -476,7 +476,7 @@ my $tag;
 
 my $authtypes = getauthtypes;
 my @authtypesloop;
-foreach my $thisauthtype (keys %$authtypes) {
+foreach my $thisauthtype (sort { $authtypes->{$b} cmp $authtypes->{$a} } keys %$authtypes) {
        my $selected = 1 if $thisauthtype eq $authtypecode;
        my %row =(value => $thisauthtype,
                                selected => $selected,