Modified other version comparison to be string based too
[exim-website.git] / script / gen.pl
index 1a5f6acefe2bd7d5f328f1e76b2e79424ef631f5..298fb1436410680045d5bcdc24ecad6894c001f4 100755 (executable)
@@ -411,9 +411,9 @@ sub old_docs_versions {
     if ( !exists $cache{old_docs_versions} ) {
         my @versions;
         foreach ( glob("$opt{docroot}/exim-html-*") ) {
-            push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 < $opt{latest} && -d $_;
+            push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 lt $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} };
 }