From 590c476f094546532cf521c3433693717f2738dd Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Thu, 21 Feb 2013 14:37:07 -0300 Subject: [PATCH] Bug 3549 -[Revised]- Framework sorting in addbook Reviewing Bug 9649, this bug comes up. This patch correctly sort frameworks by description. To test: 1) Go to Cataloguing home, button 'New record' shows unordered list of frameworks 2) Apply the patch 3) refresh, the list must be correctly sorted. Revised to sort using uppercase. Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Jared Camins-Esakov --- cataloguing/addbooks.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index 7bca2f3f46..c8a8071025 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 ( sort {$frameworks->{$a} cmp $frameworks->{$b}}keys %{$frameworks} ) { +foreach my $thisframeworkcode ( sort { uc($frameworks->{$a}->{'frameworktext'}) cmp uc($frameworks->{$b}->{'frameworktext'}) } keys %{$frameworks} ) { push @frameworkcodeloop, { value => $thisframeworkcode, frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'}, -- 2.39.5