From db28e105dbc88896243b213c5f620817cf15bc2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Andr=C3=A9=20Santoni?= Date: Wed, 26 Aug 2009 01:44:36 +0200 Subject: [PATCH] (bug #3549) Sorted framework options in the dropdown menu In addbook.pl, the framwork options are sorted in random order. They should be sorted in alphabetical order of value or code. Signed-off-by: Galen Charlton --- cataloguing/addbooks.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index 68367f700b..8ee8868292 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -57,7 +57,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( # get framework list my $frameworks = getframeworks; my @frameworkcodeloop; -foreach my $thisframeworkcode ( keys %{$frameworks} ) { +foreach my $thisframeworkcode ( sort {$frameworks->{$a} cmp $frameworks->{$b}}keys %{$frameworks} ) { push @frameworkcodeloop, { value => $thisframeworkcode, frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'}, -- 2.39.5