Bug 8836 [QA Followup] - Sort transfer branches alphabetically
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 31 Oct 2014 10:50:41 +0000 (06:50 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 6 Nov 2014 18:12:20 +0000 (15:12 -0300)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Libraries sort correctly now.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
rotating_collections/transferCollection.pl

index 855c45a..2a04857 100755 (executable)
@@ -69,6 +69,7 @@ foreach my $br ( keys %$branches ) {
     $branch{name} = $branches->{$br}->{'branchname'};
     push( @branchoptionloop, \%branch );
 }
+@branchoptionloop = sort {$a->{name} cmp $b->{name}} @branchoptionloop;
 
 ## Get data about collection
 my ( $colId, $colTitle, $colDesc, $colBranchcode ) = GetCollection($colId);