summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-01-18 17:28:41 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-01-18 17:28:41 +0000
commitfc5e9662aa25452127f63cd6cf0856c0914e2a3e (patch)
tree1856d98a049d4e8b43f8195d52d064616d54c653 /doc
parent15c468d5aed3792623da85be88c9327502617f21 (diff)
web commit by hb
Diffstat (limited to 'doc')
-rw-r--r--doc/patchqueue/inline_-_sort_by_old_first.mdwn26
1 files changed, 14 insertions, 12 deletions
diff --git a/doc/patchqueue/inline_-_sort_by_old_first.mdwn b/doc/patchqueue/inline_-_sort_by_old_first.mdwn
index 7501bbd15..308eb892c 100644
--- a/doc/patchqueue/inline_-_sort_by_old_first.mdwn
+++ b/doc/patchqueue/inline_-_sort_by_old_first.mdwn
@@ -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".