]> sipb.mit.edu Git - ikiwiki.git/commitdiff
why this is hard
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 16 Nov 2009 21:12:34 +0000 (16:12 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 16 Nov 2009 21:12:34 +0000 (16:12 -0500)
doc/bugs/map_sorts_by_pagename_and_not_title_when_show__61__title_is_used.mdwn

index 2973c601058a337924d36ca7f3e6654fa02b7353..f8e257dafb59544210e41acbebc73df9e07f4642 100644 (file)
@@ -1 +1,8 @@
 The [[directive/map]] directive sorty by pagename. That looks kind of odd, when used together with show=title. I would expect it to sort by title then.
+
+> This would be quite hard to fix. Map sorts the pages it displays by page
+> name, which has the happy effect of making "foo/bar" come after "foo";
+> which it *has* to do, so that it can be displayed as a child of the page
+> it's located in. If sorting by title, that wouldn't hold. So, map
+> would have to be effectively totally rewritten, to build up each group
+> of child pages, and then re-sort those. --[[Joey]]