Unless I'm misunderstanding, sortsub[] with a filter containing count[] should do what you need. You might need to add the *integer* suffix to it though, or else it will sort the numbers alphabetically and not produce a very useful sort.
On Wednesday, August 25, 2021 at 6:05:57 AM UTC-5 barro...@gmail.com wrote: > I saw references to sorting list results by the count operator but didn't > find the actual threads/posts about the method. > > I assume it will require a subfilter, because in a root list filter the > count just returns the count of the list results, not counts for each of > the list results. > > The sortsub operation worked with anything involving the titles of the > list results (such as length) but not the count operator. > > What I'm aiming for is ranking/sorting results (greatest to lowest counts) > of such lists as tags and tiddlers tagged with each or > > fields and how many tiddlers have each value of a particular field such as > below: > > <ol><$list filter="[tag[zz]each[zzfield1]get[zzfield1]]"><li><$view > field="title"/> - <$count filter="[tag[zz] > zzfield1<currentTiddler>]"/></li></$list></ol> > > Any directions to threads about such esoteric wikiery would be greatly > appreciated... > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6e1630c7-9ee1-42fd-8a5f-e5012a12fd82n%40googlegroups.com.