diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-08-07 15:47:59 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-08-07 15:47:59 -0400 |
commit | 581381e335f2adc83d980c6805e1e51a936fba45 (patch) | |
tree | 53b6e192e8088310e057182452a277bb78260462 /IkiWiki/Plugin/inline.pm | |
parent | 8b62cb011bbe0c43fcbf02b56e14bfb5a8c77ba9 (diff) | |
download | ikiwiki-581381e335f2adc83d980c6805e1e51a936fba45.tar ikiwiki-581381e335f2adc83d980c6805e1e51a936fba45.tar.gz |
inline: Ignore parent dirs when sorting pages by title.
Diffstat (limited to 'IkiWiki/Plugin/inline.pm')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 9c336e7d7..1a6c7cfcd 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -186,7 +186,7 @@ sub preprocess_inline (@) { #{{{ } if (exists $params{sort} && $params{sort} eq 'title') { - @list=sort @list; + @list=sort { pagetitle(basename($a)) cmp pagetitle(basename($b)) } @list; } elsif (exists $params{sort} && $params{sort} eq 'mtime') { @list=sort { $pagemtime{$b} <=> $pagemtime{$a} } @list; |