Reverse Sort

82 views
Skip to first unread message

Francis Meetze

unread,
Oct 21, 2015, 3:54:10 PM10/21/15
to TiddlyWiki
I added a simple reverse sort for date created, and it doesn't seem to be working.

<$list filter="[!has[draft.of]tag[Journal]sort[-created]]">

<$link to={{!!title}}><$view field="title"/></$link>

</$list>

What am I missing?

Felix Küppers

unread,
Oct 21, 2015, 4:00:22 PM10/21/15
to tiddl...@googlegroups.com
Hi Francis

Why the "-" in front of creative? Reverse would be "!sort" instead of "sort"

-Felix
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bac9e3fa-62b7-4166-9b15-a581f29d79a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eric Shulman

unread,
Oct 21, 2015, 4:22:13 PM10/21/15
to TiddlyWiki
On Wednesday, October 21, 2015 at 1:00:22 PM UTC-7, Felix Küppers wrote:
Why the "-" in front of creative? Reverse would be "!sort" instead of "sort"

The "-" (or "+") prefix for the sort parameter was used in the TWClassic filter syntax to indicate ascending or descending sort order.  As already noted, in TW5, you use the "!" prefix on the "sort" keyword to reverse the result; i.e., "...!sort[fieldname]..." rather than "...sort[-fieldname]..."

enjoy,
-e

Francis Meetze

unread,
Oct 21, 2015, 7:24:08 PM10/21/15
to tiddl...@googlegroups.com
I just noticed that in the docs.  Thanks for the clarification.  I guess I just overlooked that and assumed that was a NOT indicator, but I guess a NOT for sort wouldn't be very useful would it.

Reply all
Reply to author
Forward
0 new messages