[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 <henridamien.laurent@biblibre.com>
This commit is contained in:
Henri-Damien LAURENT 2009-09-19 22:57:16 +02:00
parent abba73ebb6
commit eee734518f
1 changed files with 2 additions and 2 deletions

View File

@ -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'},
};