]> granicus.if.org Git - docbook-dsssl/commitdiff
Applied patch from contributor to fix number sorting.
authorBob Stayton <bobs@sagehill.net>
Sun, 11 Apr 2004 18:58:10 +0000 (18:58 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 11 Apr 2004 18:58:10 +0000 (18:58 +0000)
xsl/fo/pdf2index

index c52963989fb452eb1f30080e2ce61c2df60b9595..c14d8ecdb31f1a7c15dc845099752543a2df8fb4 100755 (executable)
@@ -114,7 +114,7 @@ sub rangesort {
     # Make sure roman pages come before arabic ones, otherwise sort them in order
     return -1 if ($apno !~ /^\d+/ && $bpno =~ /^\d+/);
     return  1 if ($apno =~ /^\d+/ && $bpno !~ /^\d+/);
-    return $apno cmp $bpno;
+    return $apno <=> $bpno;
 }
 
 sub rangelen {