diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-01-18 17:27:51 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-01-18 17:27:51 +0000 |
commit | 15c468d5aed3792623da85be88c9327502617f21 (patch) | |
tree | c9d3a4e936facce089311c56ab3a7e322b1e8665 /doc | |
parent | 41def309349f2300c3549f62e59a36481503a3bd (diff) |
web commit by hb
Diffstat (limited to 'doc')
-rw-r--r-- | doc/patchqueue/inline_-_sort_by_old_first.mdwn | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/patchqueue/inline_-_sort_by_old_first.mdwn b/doc/patchqueue/inline_-_sort_by_old_first.mdwn new file mode 100644 index 000000000..7501bbd15 --- /dev/null +++ b/doc/patchqueue/inline_-_sort_by_old_first.mdwn @@ -0,0 +1,18 @@ +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}); + } + +this patch adds a new type of sort "old". + +However, I wonder if it would be better to add another option for inline like "sortorder" with "desc" or "asc" keywords ?
\ No newline at end of file |