bump versions of all pages with visible changes since v1.11
[sheet.git] / browser.plp
index 930c435fb83b14d5ea39c93f1f8e77e3b58bfdca..5811594606a9bea5774ba7dd0a1b319803e74272 100644 (file)
@@ -4,7 +4,7 @@ no if $] >= 5.018, warnings => 'experimental::smartmatch';
 
 Html({
        title => 'browser compatibility cheat sheet',
-       version => '1.5',
+       version => '1.6',
        description => [
                "Compatibility table of new web features (HTML5, CSS3, SVG, Javascript)",
                "comparing support and usage share for all popular browser versions.",
@@ -73,10 +73,7 @@ my %CSTATUS = (
 );
 my %versions;
 while (my ($browser, $row) = each %{ $caniuse->{agents} }) {
-       $versions{$browser} = [
-               sort { paddedver($a) cmp paddedver($b) } grep { defined }
-               @{ $row->{versions} }
-       ];
+       $versions{$browser} = [@{ $row->{versions} }];
 }
 
 my $ref = showlink('Can I use', 'https://caniuse.com/');
@@ -470,7 +467,7 @@ sub paddedver {
        # normalised version number comparable as string (cmp)
        $_[0] =~ m/(?:.*-|^)(\d*)(.*)/;
        # matched (major)(.minor) of last value in range (a-B)
-       return sprintf('%02d', length $1 ? $1 : 99) . $2;
+       return sprintf('%03d', length $1 ? $1 : 999) . $2;
 }
 
 sub showversions {