]> sipb.mit.edu Git - ikiwiki.git/commitdiff
web commit by hb
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 18 Jan 2007 17:28:41 +0000 (17:28 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 18 Jan 2007 17:28:41 +0000 (17:28 +0000)
doc/patchqueue/inline_-_sort_by_old_first.mdwn

index 7501bbd15160f1c24bea24b8cde3174fd66d46f4..308eb892cf2aa9833e47790d862298788f49cfd7 100644 (file)
@@ -1,17 +1,19 @@
 Quick hack to be able to list old entries first :
 
---- inline.pm   2007-01-18 18:21:27.000000000 +0100
-+++ /usr/share/perl5/IkiWiki/Plugin/inline.pm   2007-01-18 18:23:01.000000000 +0100
-@@ -92,6 +92,9 @@
-        elsif (! exists $params{sort} || $params{sort} eq 'age') {
-                @list=sort { $pagectime{$b} <=> $pagectime{$a} } @list;
-        }
-+       elsif (! exists $params{sort} || $params{sort} eq 'old') {
-+               @list=sort { $pagectime{$a} <=> $pagectime{$b} } @list;
-+       }
-        else {
-                return sprintf(gettext("unknown sort type %s"), $params{sort});
-        }
+    
+    --- inline.pm   2007-01-18 18:21:27.000000000 +0100
+    +++ /usr/share/perl5/IkiWiki/Plugin/inline.pm   2007-01-18 18:23:01.000000000 +0100
+    @@ -92,6 +92,9 @@
+            elsif (! exists $params{sort} || $params{sort} eq 'age') {
+                    @list=sort { $pagectime{$b} <=> $pagectime{$a} } @list;
+            }
+    +       elsif (! exists $params{sort} || $params{sort} eq 'old') {
+    +               @list=sort { $pagectime{$a} <=> $pagectime{$b} } @list;
+    +       }
+            else {
+                    return sprintf(gettext("unknown sort type %s"), $params{sort});
+            }
+    
 
 this patch adds a new type of sort "old".