From 89d3293666a6b20f89cce4598287cc90f8876bc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Andr=C3=A9=20Santoni?= Date: Tue, 25 Aug 2009 10:12:21 +0200 Subject: [PATCH] [3.0.x](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: Henri-Damien LAURENT --- cataloguing/addbooks.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index 2f43feb57c..8d02664940 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -56,7 +56,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 keys %$frameworks ) { my %row = ( value => $thisframeworkcode, frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'}, -- 2.39.5