1 Quick hack to be able to list old entries first :
4 --- inline.pm 2007-01-18 18:21:27.000000000 +0100
5 +++ /usr/share/perl5/IkiWiki/Plugin/inline.pm 2007-01-18 18:23:01.000000000 +0100
7 elsif (! exists $params{sort} || $params{sort} eq 'age') {
8 @list=sort { $pagectime{$b} <=> $pagectime{$a} } @list;
10 + elsif (! exists $params{sort} || $params{sort} eq 'old') {
11 + @list=sort { $pagectime{$a} <=> $pagectime{$b} } @list;
14 return sprintf(gettext("unknown sort type %s"), $params{sort});
18 this patch adds a new type of sort "old".
20 > Hmm, take another look at your patch above. Comapre the added lines with
21 > the "age" lines just above them. It's identical; age already does what
22 > you want. --[[Joey]]
24 However, I wonder if it would be better to add another option for inline like "sortorder" with "desc" or "asc" keywords ?
26 > That might be cleaner, since it would allow sorting pages in reverse by
27 > title. If someone ever had a reason to do that. --[[Joey]]