work around bug in pre-perl5.10 which is at best noisy and at worst missorting
authorjeff <jeff>
Sun, 17 Jan 2010 00:22:23 +0000 (00:22 +0000)
committerjeff <jeff>
Sun, 17 Jan 2010 00:22:23 +0000 (00:22 +0000)
FS/FS/cust_pkg.pm

index 58c549c..0164fa6 100644 (file)
@@ -1535,6 +1535,9 @@ sub h_cust_svc {
 sub _sort_cust_svc {
   my( $self, $arrayref ) = @_;
 
+  my $sort =
+    sub ($$) { my ($a, $b) = @_; $b->[1] cmp $a->[1]  or  $a->[2] <=> $b->[2] };
+
   map  { $_->[0] }
   sort { $b->[1] cmp $a->[1]  or  $a->[2] <=> $b->[2] } 
   map {