The select budget dropdown list should be presented in
an ordered fashion. To achieve this sort the budget array
by the visible text.
---
 acqui/neworderempty.pl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl
index d482554..7dc7cb5 100755
--- a/acqui/neworderempty.pl
+++ b/acqui/neworderempty.pl
@@ -264,6 +264,8 @@ foreach my $r (@{$budgets}) {
     };
 }
 
+@{$budget_loop} =
+  sort { uc( $a->{b_txt}) cmp uc( $b->{b_txt}) } @{$budget_loop};
 
 if ($close) {
     $budget_id      =  $data->{'budget_id'};
-- 
1.7.7.6

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to