From: Joey Hess Date: Tue, 26 Aug 2008 16:47:02 +0000 (-0400) Subject: inline: Ignore parent dirs when sorting pages by title. X-Git-Tag: 2.53.1~9 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/f910c81b89fe8cf99cb5eabfaec4bd47eb78c61a inline: Ignore parent dirs when sorting pages by title. (cherry picked from commit 581381e335f2adc83d980c6805e1e51a936fba45) --- diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 10f78cb3b..2faaa57ae 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -142,7 +142,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; diff --git a/debian/changelog b/debian/changelog index 8c3b4bac8..b1d55cfdb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,6 +19,7 @@ ikiwiki (2.53.1) UNRELEASED; urgency=low Previous fix mised a few cases. * toggle: Fix incompatability between javascript and webkit. * toggle: Fix for when html got tidied. Closes: #492529 (Enrico Zini) + * inline: Ignore parent dirs when sorting pages by title. -- Josh Triplett Wed, 09 Jul 2008 21:30:33 -0700