filter operator: sort by last part of title

66 views
Skip to first unread message

Mohammad Rahmani

unread,
Aug 6, 2021, 11:54:09 AM8/6/21
to tiddl...@googlegroups.com
2. create three tiddlers with below titles all tagged with xtx as below
one: first
two: second
three: third

3. In another tiddler enter the below code

\define myfilter() [split[:]last[]trim[]!sort[]]
<$list filter="[tag[xtx]filter<myfilter>]">

</$list>


4. The expected result is

three: third
two: second
one: first

BUT it does not work! What is wrong here?


Best wishes
Mohammad

Saq Imtiaz

unread,
Aug 6, 2021, 12:02:03 PM8/6/21
to TiddlyWiki

Mohammad Rahmani

unread,
Aug 6, 2021, 12:26:02 PM8/6/21
to tiddl...@googlegroups.com
Hi Saq,
 It is funny! With no doubt I have Alzheimer's! ;-)


Best wishes
Mohammad


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/055f2af6-da9b-4f11-a6e1-1d2ff5ee0ba5n%40googlegroups.com.

Mohammad Rahmani

unread,
Aug 6, 2021, 4:39:16 PM8/6/21
to tiddl...@googlegroups.com
Saq, 
Would you please have a look at

It seems I cannot send the reverse flag as a variable for sort filter run prefix!

Best wishes
Mohammad


On Fri, Aug 6, 2021 at 8:32 PM Saq Imtiaz <saq.i...@gmail.com> wrote:
--
Reply all
Reply to author
Forward
0 new messages