projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e3057b
)
work around bug in pre-perl5.10 which is at best noisy and at worst missorting
author
jeff
<jeff>
Sun, 17 Jan 2010 00:22:23 +0000
(
00:22
+0000)
committer
jeff
<jeff>
Sun, 17 Jan 2010 00:22:23 +0000
(
00:22
+0000)
FS/FS/cust_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_pkg.pm
b/FS/FS/cust_pkg.pm
index
58c549c
..
0164fa6
100644
(file)
--- 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 {