diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-06-08 01:30:52 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-06-08 01:30:52 -0700 |
commit | e96a2a6fd3a8885b0fb035ecc55bdf50dbe5a4aa (patch) | |
tree | 1be65eac435d9445d71a2c63e33fefe94db96349 /httemplate/config | |
parent | 0f21021fea8f99d28b4507c3cffa55cbdd6f110d (diff) |
multi-currency, RT#21565
Diffstat (limited to 'httemplate/config')
-rw-r--r-- | httemplate/config/config.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 7960d7e38..50b3eba85 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -156,7 +156,9 @@ Setting <b><% $key %></b> % } % my %options = &{$config_item->options_sub}; -% my @options = sort { $a <=> $b } keys %options; +% my @options = keys %options; +% my $sortsub = $config_item->sort_sub || sub { $a <=> $b }; +% @options = sort $sortsub @options; % my %saw; % foreach my $value ( @options ) { % local($^W)=0; next if $saw{$value}++; |