Yes, that did the trick, although I omitted ".sort()".
The sort() function sorts the tags, however, in my case, that is not
necessary, since it doesn't matter where the string is, I'm merely
checking for its presence.
<<forEachTiddler where 'YourCondition' sortBy
'tiddler.title.toUpperCase()'>> ...