In the docs for the tags operator it says (my emphasis) …
The corresponding tiddler’s tags are retrieved (in order of appearance in the
tags
field) …
which is not true.
tiddlywiki.com (5.3.2)
tagstest code:
The tags are <$list filter="[[$:/.rgt/bk/macro/flags]tags[]]"><<tag>> </$list>
I’d hesitate to call the outcome a bug – I mean who cares? – but the docs are wrong.