From f80fa21b6c37666a119726a2971d794518ab6b8e Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Fri, 26 Oct 2012 21:28:07 +0100 Subject: [PATCH] Changed version comparison to be string based --- script/gen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/gen.pl b/script/gen.pl index 1a5f6ac..61b7cea 100755 --- a/script/gen.pl +++ b/script/gen.pl @@ -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} }; } -- 2.30.2