Creating a list of tiddlers sorted by tagging?

To preface, I created this filter in order to automatically populate a list of tiddlers that I have either already created or ones that I haven’t yet created, however I am having some difficulty in sorting said list.

So I’m trying to sort the list from largest at the top to smallest at the bottom, by the number of tiddlers that they are tagging. So for instance, if I have the tiddler “TiddlyWiki” tagging 4 tiddlers, and “Notepad” tagging 2 tiddlers, “Notepad” should be listed underneath “TiddlyWiki”

The full filter is [tag[Topic Tiddlers]!is[system]] [all[missing+tags]!is[system]] -[[Journal Tiddlers]] -[[Topic Tiddlers]] :sort:number:reverse[tagging[]] and the :sort part I don’t think is correctly working. Not as I intend it to though.

The idea behind it is to focus on creating Journal entries, and whatever links I create, be it hardlinks, tags, etc. they’ll populate in this list for me to revisit and expand upon.

Any and all advise as far as what I’m doing wrong would be really appreciated, I think I’ve gone above my comfort zone with this one haha

(Ah, something I should note is that I am trying to keep it as a single filter, without inlcuding any definitions or procedures, as it’s intended to be stored entirely within a field. Sorry if that complicates things :sweat_smile:)

You’re very close! Try :sort:number:reverse[tagging[]count[]] instead of :sort:number:reverse[tagging[]].

Oh crud! You know at one point I HAD used count, just before tagging 🥲 in hindsight it made sense, but looking at that now, I can see why it didn’t work.

Anyhow, thank you very much! :grin:

You might also like TiddlyTools/Search/TagCloud which provides a nice “visualizer” for tags. Among it’s features:

  • scale tag pills based on number of tiddler they are tagging (more tiddlers tagged == bigger tag pill)
  • sort by tag name or tag count
  • select a subset of tags
  • apply a tiddler filter
  • automatically adds a “TagCloud” tab in $:/AdvancedSearch
  • automatically adds a “TagCloud” icon in the Top Toolbar

enjoy,
-e

2 Likes

I can’t help but ask but- do you have a tool for everything TiddlyWiki can do?
Because I feel like you always have something awesome stashed away in your TiddlyTools collection haha

edit: actually, to make my joke more of an actual question- Do you ever encounter situations where you are stumped on how to get something to function? if so, what do you typically do, if you don’t mind me asking.