From: Bob Stayton Date: Sun, 11 Apr 2004 18:58:10 +0000 (+0000) Subject: Applied patch from contributor to fix number sorting. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b886e8318484744494b389c0d742c25e0a8690ac;p=docbook-dsssl Applied patch from contributor to fix number sorting. --- diff --git a/xsl/fo/pdf2index b/xsl/fo/pdf2index index c52963989..c14d8ecdb 100755 --- a/xsl/fo/pdf2index +++ b/xsl/fo/pdf2index @@ -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 {