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