From f910c81b89fe8cf99cb5eabfaec4bd47eb78c61a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 26 Aug 2008 12:47:02 -0400 Subject: [PATCH] inline: Ignore parent dirs when sorting pages by title. (cherry picked from commit 581381e335f2adc83d980c6805e1e51a936fba45) --- IkiWiki/Plugin/inline.pm | 2 +- debian/changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2