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.astersk.org/svn/dahdi/tools/trunk@9986 17933a7a-c749-41c5-a318-cba88f637d49
This commit is contained in:
Tzafrir Cohen 2011-06-23 17:33:43 +00:00
parent f46df849da
commit 9ae57618d3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}