29th July 2022 at 2:15pm
When TiddlyWiki generates a list of the tiddlers that have a particular tag (e.g. the dropdown list of a tag pill), it orders the tiddlers using the following rules:
- Start with any that are declared in the
list
field of the tag tiddler, in the order given there. - In each remaining tiddler
T
, look for alist-before
field. If this has a tiddler title as its value, placeT
just before that one.- As a special case, if the field exists but its value is empty, place
T
at the very start of the list.
- As a special case, if the field exists but its value is empty, place
- In each remaining tiddler
T
, look for alist-after
field. If this has a tiddler title as its value, place tiddlerT
just after that one.- As a special case, if the field exists but its value is empty, place
T
at the very end of the list.
- As a special case, if the field exists but its value is empty, place
- If any tiddlers still remain, place them at the end of the list in ascending alphabetical order of title. The difference between capital and lowercase letters is ignored.
The ordering of tiddlers with a particular tag can be directly modified using drag and drop within a tag pill dropdown. The underlying list-tagged-draggable Macro can also be used elsewhere.