summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-23 17:33:43 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-23 17:33:43 +0000
commit988059c49e5eb216edceee43a9d94d8ebf28ae7a (patch)
tree96e33f33817a3596da80af450e1e562137ab4318
parente6cb9220161b1c4cd06533c9572e6285b4bf630c (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/trunk@9986 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;
}