X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/72c3b81efb1079f8db070ac89e97e9b7bcedd61b..33b39968948f2dcda5c073916d797259e441d1de:/IkiWiki/Plugin/pagestats.pm diff --git a/IkiWiki/Plugin/pagestats.pm b/IkiWiki/Plugin/pagestats.pm index ac0a463e3..304ddd1c8 100644 --- a/IkiWiki/Plugin/pagestats.pm +++ b/IkiWiki/Plugin/pagestats.pm @@ -86,7 +86,7 @@ sub preprocess (@) { if (exists $params{limit}) { my $i=0; my %show; - foreach my $key (sort { $counts{$b} <=> $counts{$a} } keys %counts) { + foreach my $key (sort { $counts{$b} <=> $counts{$a} || $a cmp $b } keys %counts) { last if ++$i > $params{limit}; $show{$key}=$counts{$key}; } @@ -100,7 +100,7 @@ sub preprocess (@) { htmllink($params{page}, $params{destpage}, $_, noimageinline => 1, linktext => linktext($_, %params)). "