Sorting of tiddlers when using {{{ [tag[mytag]] }}}

79 views
Skip to first unread message

oldeagle

unread,
Apr 22, 2015, 5:16:53 AM4/22/15
to tiddl...@googlegroups.com
I list all tiddlers with a certain tag by using

{{{ [tag[mytag]] }}}

It seems that the list of tiddlers is sorted by creation date.

Is it possible to sort the list in other ways? For example alphabetically, by modification date, ascending / descending order etc?

Thanks for all help!

Eric Shulman

unread,
Apr 22, 2015, 6:01:42 AM4/22/15
to tiddl...@googlegroups.com
You want to use the "sort" filter operator.  The syntax is:
   sort[fieldname]
which sorts in ascending order, using the values from the indicated field.  To sort in descending order, use a "!" prefix, like this:
   !sort[fieldname]

Thus, for your requested use-case, you can write something like:
   {{{ [tag[mytag]sort[title] }}}
and
   {{{ [tag[mytag]!sort[modified] }}}

For documentation about all the filter operators, see:

enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas"
"Inside TiddlyWiki: The Missing Manuals"

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

oldeagle

unread,
Apr 22, 2015, 6:19:22 AM4/22/15
to tiddl...@googlegroups.com
Thanks a lot, Eric. Got it sorted!

Seems there was a missing ] in your example, but I got it to work with :

{{{ [tag[mytag]sort[title]] }}}

Thanks again!
Reply all
Reply to author
Forward
0 new messages