]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
inline: Ignore parent dirs when sorting pages by title.
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 26 Aug 2008 16:47:02 +0000 (12:47 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 26 Aug 2008 16:47:02 +0000 (12:47 -0400)
(cherry picked from commit 581381e335f2adc83d980c6805e1e51a936fba45)

IkiWiki/Plugin/inline.pm
debian/changelog

index 10f78cb3b1c591230b7acb571f08d600a6473e0c..2faaa57aeb285bbba58e00d10f41a737333faec2 100644 (file)
@@ -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;
index 8c3b4bac82ee3b177a97bbfa5a37e8beb05b5996..b1d55cfdbc495b25d4244bfcf78d1fe54b75c566 100644 (file)
@@ -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 <josh@freedesktop.org>  Wed, 09 Jul 2008 21:30:33 -0700