X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig.cgi;h=50b3eba85dd3c47323d2b2c8dcf501f7f3c78f22;hb=4b05b20576ddb14577d59c87c8257c6804449410;hp=7960d7e388c8d948bcb4e7dd8b91ad96ea9c4035;hpb=4b76d6fbe262579dbb19aa40b24c83f1024f5425;p=freeside.git 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}++;