diff options
author | jeff <jeff> | 2010-01-17 00:22:23 +0000 |
---|---|---|
committer | jeff <jeff> | 2010-01-17 00:22:23 +0000 |
commit | 26221d593817e373f8edc2d31794154d3d543203 (patch) | |
tree | 2851f9bd1aa99c514868e8aaeb08b601b45cae72 | |
parent | 0e3057b9ae826b568480da85db11c37b7f885fca (diff) |
work around bug in pre-perl5.10 which is at best noisy and at worst missorting
-rw-r--r-- | FS/FS/cust_pkg.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 58c549c0c..0164fa6ac 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -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 { |