]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
simplify
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 23 Apr 2009 20:23:52 +0000 (16:23 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 23 Apr 2009 20:23:52 +0000 (16:23 -0400)
IkiWiki/Plugin/postsparkline.pm

index c2ebbc5eb1da5f9e6daf6fcb704f48ebd2fe6dbf..d2e5c23788678efb7819e10c59964bd852663e06 100644 (file)
@@ -50,11 +50,10 @@ sub preprocess (@) {
 
        add_depends($params{page}, $params{pages});
 
-       my @list=pagespec_match_list(
-               [ grep { $_ ne $params{page} } keys %pagesources],
-               $params{pages}, location => $params{page});
-       
-       @list = sort { $params{timehash}->{$b} <=> $params{timehash}->{$a} } @list;
+       my @list=sort { $params{timehash}->{$b} <=> $params{timehash}->{$a} } 
+               pagespec_match_list(
+                       [ grep { $_ ne $params{page} } keys %pagesources],
+                       $params{pages}, location => $params{page});
 
        my @data=eval qq{IkiWiki::Plugin::postsparkline::formula::$formula(\\\%params, \@list)};
        if ($@) {