]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Map_sorts_subtags_under_a_different_tag.mdwn
e5c4523e7a24ca1193c229a6f0d41850d4ee6ec8
[ikiwiki.git] / doc / bugs / Map_sorts_subtags_under_a_different_tag.mdwn
1 ikiwiki's map directive is full of surprises. I have put a snapshot of the
2 site as it was when I saw the following problem at
3 <http://scratch.madduck.net/web__phd.martin-krafft.net__map-bug-2.tgz> and can
4 revert there any time, but I need to move on.
5
6 I have a few tags starting with `a` (abridged list):
7
8     $ ls wiki/factors/tag/a*
9     [...]
10     wiki/factors/tag/active/:
11     index.html
12     
13     wiki/factors/tag/affects/:
14     contributors/  developers/  users/
15     [...]
16
17 In `wiki-wc/factors/tag.mdwn`, I have a map for these tags:
18
19     \[[map pages="factors/tag/*"]]
20
21 and this works, except that for *whatever* reason, it actually sorts the three
22 `affects/*` tags under `active`:
23
24     $ w3m -dump wiki/factors/tag/index.html | grep active -A3
25                   ○ active
26                       ■ contributors
27                       ■ developers
28                       ■ users
29
30 This really blows my mind. :)