Hello,
I believe it’s not a big problem, but I just can’t solve it.
I want to sort tiddlers by number of child tiddlers. Specifically, this is a wiki about my OCs, there are tiddlers of OC (tagged “OC”), and tiddlers of scanned image pages (tagged “imagepage”, and names of all mentioned OCs in that image (same as the OC tiddler title)). I want to know how many imagepage each OC have.
This is what I intuitively wrote:
<$vars pagestagging="[tag<currentTiddler>tag[imagepage]count[]]">
<table>
<tr><th>name</th><th>imagepage number</th></tr>
<$list filter="[tag[OC]sortsub:integer<pagestagging>]"><tr>
<td><$link to=<<currentTiddler>>/></td>
<td><$list filter=<<pagestagging>>>{{!!title}}</$list></td>
</tr></$list>
</table>
</$vars>
However, I got something like
| name | imagepage number |
|---|---|
| Aaron | 1 |
| Alice | 3 |
| Bob | 1 |
| Candice | 5 |
The “pagestagging” filter worked in the second column, but the tiddlers are not sorted, they displayed by default alphabetical order.
How do I fix this?