fix sort of routers (and hardware type, it looks like)
authorIvan Kohler <ivan@freeside.biz>
Sat, 6 Oct 2012 01:18:34 +0000 (18:18 -0700)
committerIvan Kohler <ivan@freeside.biz>
Sat, 6 Oct 2012 01:18:34 +0000 (18:18 -0700)
httemplate/elements/select-tiered.html

index 7a7982e..e332eef 100644 (file)
@@ -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
+%             )
+%     {
   <OPTION VALUE="<%$_ |h%>" <% $curr_values->[$i] eq $_ ? 'SELECTED' : ''%>>
   <% $options->{$_} |h%></OPTION>
 %     }