Changed version comparison to be string based
[exim-website.git] / 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 $_;
         }
-        $cache{old_docs_versions} = [ reverse sort { $a <=> $b } @versions ];
+        $cache{old_docs_versions} = [ reverse sort { $a cmp $b } @versions ];
     }
     return @{ $cache{old_docs_versions} };
 }