From: Ivan Kohler Date: Sat, 3 Feb 2018 20:57:43 +0000 (-0800) Subject: alpha sort CDR formats, weight has lost all usefulness X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=889eafade02f1b7463cc47202020ddb8c5d8394f alpha sort CDR formats, weight has lost all usefulness --- diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index 331ac0f2f..844b7fd5c 100644 --- a/FS/FS/cdr.pm +++ b/FS/FS/cdr.pm @@ -1659,7 +1659,12 @@ foreach my $INC ( @INC ) { tie my %import_formats, 'Tie::IxHash', map { $_ => $cdr_info{$_}->{'name'} } - sort { $cdr_info{$a}->{'weight'} <=> $cdr_info{$b}->{'weight'} } + + #this is not doing anything useful anymore + #sort { $cdr_info{$a}->{'weight'} <=> $cdr_info{$b}->{'weight'} } + #so just sort alpha + sort { lc($cdr_info{$a}->{'name'}) cmp lc($cdr_info{$b}->{'name'}) } + grep { exists($cdr_info{$_}->{'import_fields'}) } keys %cdr_info;