Order default tiddler list based on creation date.

32 views
Skip to first unread message

Zu

unread,
Mar 16, 2020, 2:12:19 PM3/16/20
to tiddl...@googlegroups.com
Hi,
If I want to display all the tiddlers with certain tags upon opening the tiddlywiki 
I set [tag[HelloThere]] in default tiddlers as indicated here.

But tiddler order seems to be random. Can I somehow force it to be in reverse chronological order? I.E. most recent post (by creation) to be the first and so on ..?

Eric Shulman

unread,
Mar 16, 2020, 2:39:36 PM3/16/20
to tiddl...@googlegroups.com
The contents of DefaultTiddlers uses filter syntax, which allows for more than one filter operator to be applied.

To get the results you want, add a sort[] operator to your filter expression, like this:

[[tag[HelloThere]!sort[created]]

The parameter of the sort operator (i.e., created) indicates the field to sort by (the default is the title field).
Preceding the sort operator by "!" uses *descending* order (the default is ascending order).

enjoy,
-e

Zu

unread,
Mar 16, 2020, 2:51:14 PM3/16/20
to TiddlyWiki
Thank you for your prompt response Eric!! 
I think I tried something similar and didn't work, It seems I was missing "!" 
Anyway it works as intended now :))
Reply all
Reply to author
Forward
0 new messages