Sorting Branches by Branchcode on display.
[koha.git] / opac / opac-search.pl
index 320336f..90ed8c3 100755 (executable)
@@ -220,7 +220,7 @@ query parser.
 # load the branches
 my $branches = GetBranches();
 my @branch_loop;
-for my $branch_hash ( keys %$branches ) {
+for my $branch_hash (sort keys %$branches ) {
     my $selected=(C4::Context->userenv && ($branch_hash eq C4::Context->userenv->{branch})) if (C4::Context->preference('SearchMyLibraryFirst'));
     push @branch_loop,
       {