From 34977ef8709acb0d2ef340312f97b1cfa9146bbf Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 9 Jun 2015 03:45:25 +0200 Subject: [PATCH] Bug 13950: Sort Item search home library list by branch name On the item search form the list of home libraries isn't sorted alphabetically by their descrption. To test: - Staff: Advanced search - item search - Verify pull down for home library is correctly sorted after applying the patch. --- catalogue/itemsearch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/itemsearch.pl b/catalogue/itemsearch.pl index e66aa4f..9c07d48 100755 --- a/catalogue/itemsearch.pl +++ b/catalogue/itemsearch.pl @@ -242,7 +242,7 @@ if ($format eq 'html') { my $branches = GetBranches(); my @branches; - foreach my $branchcode (keys %$branches) { + foreach my $branchcode (sort keys %$branches) { push @branches, { value => $branchcode, label => $branches->{$branchcode}->{branchname}, -- 1.9.1