From: Ivan Kohler Date: Sat, 3 Feb 2018 20:57:51 +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=4e7954f0f0703afc22b649ce38aea4e63db81daa alpha sort CDR formats, weight has lost all usefulness --- diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index c4e9c47a3..a7d002898 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;