sort tiddlers based on the output of a macro applied to each of them

20 views
Skip to first unread message

Eric N

unread,
Jan 7, 2026, 1:58:49 PM (2 days ago) Jan 7
to TiddlyWiki
Hi,

A filter outputs tiddlers x, y, z and I want to sort them.
Not by their title or by any field, but by the output of a macro applied to each of them, in my case a macro that returns the breadcrumbs of a tiddler.

Example of desired sorted output for tiddlers x y and z:
path > to > y
qath > to > too > tooo > z
rath > za > ze > x
(which is sorted alphabetically by breadcrumbs, and not by tiddlers titles)

I first thought I'd run two list loops :
- first one assigns the breadcrumbs value of the tiddlers in a dedicated field in that tiddler
- second one outputs the field : ....get[dedicated_field]sort[] , and done !

Unfortunately I don't know the mechanism to write the first loop. 
Is it possible ?

Best,
E.

scott....@gmail.com

unread,
Jan 7, 2026, 3:28:08 PM (2 days ago) Jan 7
to TiddlyWiki

The conversation here has moved to https://talk.tiddlywiki.org/.  Could you repost the question there, where it's much more likely to get answers?

In the meantime, you might look up the sortsub operator (https://tiddlywiki.com/#sortsub%20Operator), which should allow you to avoid adding such temporary fields, sorting tiddlers based on the result of calling a subfillter... which can call your macro or procedure.


PMario

unread,
Jan 8, 2026, 5:19:34 AM (yesterday) Jan 8
to TiddlyWiki
You may have a look at the trails plugin: https://wikilabs.github.io/editions/trails/
-Mario

Eric Nowak

unread,
Jan 8, 2026, 5:45:59 AM (yesterday) Jan 8
to tiddl...@googlegroups.com
Hi Mario, 

This is indeed the plugin I am using to generate the breadcrumbs. 

What I was wondering is : how to sort elements by a function output (here: trail / breadcrumbs applied to filter output) instead of by title or by any field of a filter output, the latter being what sort[] is made for.

Hope it makes sense :)

@scott: I’ve seen you’ve moved the question to  https://talk.tiddlywiki.org/, thanks !

--
Éric Nowak
Tel: +262 (0)6 92 64 05 54

-- 
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/smMUC6BKPrY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tiddlywiki/4048678d-77aa-49e5-80d4-b67113f317b4n%40googlegroups.com.

scott....@gmail.com

unread,
Jan 8, 2026, 3:48:21 PM (22 hours ago) Jan 8
to TiddlyWiki
> @scott: I’ve seen you’ve moved the question to  https://talk.tiddlywiki.org/, thanks !

Not quite.  Things in the Google Group are copied to the forum.  But it's read-only there, and no one can respond, except back here inside Google Groups.  Many people won't bother, even if they know how to do so.

That's why I encourage you to create a topic there.

  -- Scott

Reply all
Reply to author
Forward
0 new messages