From e96a2a6fd3a8885b0fb035ecc55bdf50dbe5a4aa Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sat, 8 Jun 2013 01:30:52 -0700 Subject: multi-currency, RT#21565 --- httemplate/config/config.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'httemplate/config') 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 <% $key %> % } % 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}++; -- cgit v1.2.1