There are two ways to control the order of tiddlers that have a tag in common with each other:
-
set a âlist-beforeâ (or âlist-afterâ) field on the tiddler you wish to control. Note that if the list-before
field is left blank, then it means âat the start of the listâ (or, if list-after
is left blank, then it means âat the end of the listâ).
-
using drag-and-drop, set the order of tiddlers for a given tag by viewing that tag (i.e., <<tag sometag>>
). Click on the tag to see the list of individual tiddlers with that tag, and then interactively drag-and-drop to change the order in that list. This method does not rely upon the list-before
(or list-after
) field. Instead, it stores the order for all tag-related tiddlers in the list
field of the tag itself. In addition, using this method automatically removes any list-before
(or list-after
) fields on the individual tiddlers. This is necessary so that the order specified by the tagâs list
field will by properly applied.
As youâve noted, the first method works only when the individual tiddler in question belongs to just one âtag groupâ and that tag group is never manually re-ordered by drag-and-drop.
So, you might ask: what is the value of the first method if it is so âbrittleâ. Typically, the first method is generally effective when the tagged tiddler is part of a plugin, since when intially installed, the plugin canât possibly know what other tags you intend to apply to that tiddler for your working TiddlyWiki environment, and if that individual tiddler has only one tag, then manually re-ordering the tiddlers will still produce the same desired result.
However, as youâve also noted, when a tiddler has multiple tags and you interactively re-order the items for any one tag, this âinitial installâ method of tag sorting stops working. In this case you must do the same (i.e., interactively re-order the tagged tiddlers) for each of those multiple tags so that each tag can independently apply its own list
field.
Sure, it may not be intuitive, but this approach DOES work for your specific use-case situation.
Hope this helps,
-e