My tiddlers have a field "sites", in which I store multivalue site names, in format:
Rörshein Zeitlarn [[Vedrovice V]] [[Dzierżysław I]]
The code below creates a hierarchical list showing tiddlers names and list of sites assigned to each tiddler (look at the attachment).
<$list filter="[has[sites]]">
<ul><li>
<$link><<currentTiddler>></$link>
<$list filter="[enlist{!!sites}sort[title]]" variable="mySites" >
<ul><li> <<mySites>> </li></ul>
</$list>
</li></ul>
</$list>
But I can not get the reverse order,ie to group the tiddlers by the sites, like that:
* Albersdorf
* tiddler 1
* tiddler 2
* Ksar Akil
* tiddler 1
* tiddler 3
Would someone help?
best
Darek