projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e398157
)
work around bug in pre-perl5.10 which is at best noisy and at worst missorting
author
jeff
<jeff>
Sun, 17 Jan 2010 03:10:41 +0000
(
03:10
+0000)
committer
jeff
<jeff>
Sun, 17 Jan 2010 03:10:41 +0000
(
03:10
+0000)
FS/FS/cust_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_pkg.pm
b/FS/FS/cust_pkg.pm
index
ab26746
..
d32ad1b
100644
(file)
--- a/
FS/FS/cust_pkg.pm
+++ b/
FS/FS/cust_pkg.pm
@@
-1173,8
+1173,12
@@
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] }
+ sort
$sort
map {
my $pkg_svc = qsearchs( 'pkg_svc', { 'pkgpart' => $self->pkgpart,
'svcpart' => $_->svcpart } );