From eee734518fecfb5c4196aa6c68f0f18910f55ccc Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Sat, 19 Sep 2009 22:57:16 +0200 Subject: [PATCH] [3.0.x](bug #3549) Sorted framework options in the dropdown menu In addbook.pl, the framework options are sorted in random order. They should be sorted in alphabetical order of value or code. Signed-off-by: Henri-Damien LAURENT --- cataloguing/addbooks.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index dd897e1549..968ee65174 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -57,8 +57,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( # get framework list my $frameworks = getframeworks; my @frameworkcodeloop; -foreach my $thisframeworkcode ( keys %{$frameworks} ) { - push @frameworkcodeloop, { +foreach my $thisframeworkcode ( sort keys %$frameworks ) { + push @frameworkcodeloop,{ value => $thisframeworkcode, frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'}, }; -- 2.39.5