From b7d5d55cc3cd3fa3437b6ca239768df937605b2b Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 11 Oct 2012 15:16:45 -0700 Subject: [PATCH] backport broadband provision sort order (and JSON loading) fixes to 2.3, RT#19762 --- httemplate/elements/select-tiered.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/httemplate/elements/select-tiered.html b/httemplate/elements/select-tiered.html index 99b285274..e332eeff8 100644 --- a/httemplate/elements/select-tiered.html +++ b/httemplate/elements/select-tiered.html @@ -59,7 +59,11 @@ main argument list, and will be applied to the last tier. > % if ( $i == 0 ) { % my $options = $tiers_by_key->[0]->{''}; -% foreach ( sort keys %$options ) { +% #foreach ( sort keys %$options ) { +% foreach ( sort { lc($options->{$a}) cmp lc($options->{$b}) } +% keys %$options +% ) +% { % } @@ -68,8 +72,8 @@ main argument list, and will be applied to the last tier. <% $tier->{after} %> % } #foreach $tier +