summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-23 17:39:07 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-23 17:39:07 +0000
commit90bc7267304c8d3ff3fd38ce6a9042414b9fbe66 (patch)
tree7b71b9746c4cb13f0c9562cf3a913cda1029ca4f
parent66e6a60f29f4ecb50731af97e00aeecf5770a431 (diff)
fix registration order for more than 9 Astribanks
The sorting function for SORT_XPPORDER accidentally sorted the Astribank priorities from the xpp_order file (/etc/dahdi/xpp_order) lexicographically instead of numerically, that is: 10 before 2. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.4@9987 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--xpp/perl_modules/Dahdi/Xpp.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpp/perl_modules/Dahdi/Xpp.pm b/xpp/perl_modules/Dahdi/Xpp.pm
index d4b315b..8280b5e 100644
--- a/xpp/perl_modules/Dahdi/Xpp.pm
+++ b/xpp/perl_modules/Dahdi/Xpp.pm
@@ -97,7 +97,7 @@ sub by_type {
}
sub by_xpporder {
- my $cmp = $a->xpporder cmp $b->xpporder;
+ my $cmp = $a->xpporder <=> $b->xpporder;
return $cmp if $cmp != 0;
return $a->connector cmp $b->connector;
}