listWidget filter: how to sort by Tag

32 views
Skip to first unread message

David

unread,
Mar 23, 2020, 6:55:03 PM3/23/20
to TiddlyWiki
    <$list filter="[<thisContext>listed[locationcontext]tag[Task]]" variable="item">
    <$checkbox tiddler=<<item>> tag="Done"/> <<item>><br/>
    </$list>

I have a todo list/checkbox tiddler arrangement that is using different tiddlers as the data sources, instead of one dictionary Tiddler.

It's working great, but I'd love to have the list sorted by the tag "Done", so that all the tiddlers with the tag are at the bottom.

Joshua Fontany

unread,
Mar 23, 2020, 7:37:05 PM3/23/20
to TiddlyWiki
For simplicity, I suggest 2 lists. Try:

<$list filter="[<thisContext>listed[locationcontext]tag[Task]!tag[Done]]" variable="item">

    <$checkbox tiddler=<<item>> tag="Done"/> <<item>><br/>
</$list>
<$list filter="[<thisContext>listed[locationcontext]tag[Task]tag[Done]]" variable="item">

    <$checkbox tiddler=<<item>> tag="Done"/> <<item>><br/>
</$list>
Reply all
Reply to author
Forward
0 new messages