Changed version comparison to be string based
authorNigel Metheringham <nigel@exim.org>
Fri, 26 Oct 2012 20:28:07 +0000 (21:28 +0100)
committerNigel Metheringham <nigel@exim.org>
Fri, 26 Oct 2012 20:28:07 +0000 (21:28 +0100)
script/gen.pl

index 1a5f6acefe2bd7d5f328f1e76b2e79424ef631f5..61b7cea9c835a3febe0764f42733ed5536bc7370 100755 (executable)
@@ -413,7 +413,7 @@ sub old_docs_versions {
         foreach ( glob("$opt{docroot}/exim-html-*") ) {
             push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 < $opt{latest} && -d $_;
         }
         foreach ( glob("$opt{docroot}/exim-html-*") ) {
             push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 < $opt{latest} && -d $_;
         }
-        $cache{old_docs_versions} = [ reverse sort { $a <=> $b } @versions ];
+        $cache{old_docs_versions} = [ reverse sort { $a cmp $b } @versions ];
     }
     return @{ $cache{old_docs_versions} };
 }
     }
     return @{ $cache{old_docs_versions} };
 }