aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-07 15:47:59 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-07 15:47:59 -0400
commit581381e335f2adc83d980c6805e1e51a936fba45 (patch)
tree53b6e192e8088310e057182452a277bb78260462 /IkiWiki
parent8b62cb011bbe0c43fcbf02b56e14bfb5a8c77ba9 (diff)
downloadikiwiki-581381e335f2adc83d980c6805e1e51a936fba45.tar
ikiwiki-581381e335f2adc83d980c6805e1e51a936fba45.tar.gz
inline: Ignore parent dirs when sorting pages by title.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/inline.pm2
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;