From: Mischa POSLAWSKY Date: Wed, 4 Feb 2015 07:20:02 +0000 (+0100) Subject: browser: sort non-numeric version numbers last X-Git-Tag: v1.6~15 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/a213453ce900f654f44ca6ff11a69df07215cdfe?ds=sidebyside browser: sort non-numeric version numbers last MSIE version "TP" comes after "11", obviously! This is the only non-numeric version number for now, see how it develops. --- diff --git a/browser.plp b/browser.plp index beff4a9..9fd9e90 100644 --- a/browser.plp +++ b/browser.plp @@ -395,7 +395,7 @@ sub paddedver { # normalised version number comparable as string (cmp) shift =~ /(?:.*-|^)(\d*)(.*)/; # matched (major)(.minor) of last value in range (a-B) - return sprintf('%02d', $1 || 0) . $2; + return sprintf('%02d', $1 || 99) . $2; } sub showversions {