From 9ae57618d3fac4afdd3516f3ab1362f55a5559f3 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Thu, 23 Jun 2011 17:33:43 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@9986 17933a7a-c749-41c5-a318-cba88f637d49 --- xpp/perl_modules/Dahdi/Xpp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }