Just reporting back some success for those looking to do this.
Digging into the $:/core/ui/TagTemplate tiddler revealed that what I wanted to tweak was in the list-tagged-draggable macrocall. That macro accepts a "subFilter" parameter that I could pass my "sortan[]" into.
In investigating further to try to get the section range markings (§§) in the right spot, I tried the new sortsub operator. The following substitution to the macrocall to list-tagged-draggable works but seems rather messy:
<$vars sortsubFilter="[trim[§]splitbefore[ ]splitbefore[-]trim[-]trim[]addprefix[v]addsuffix[.0]]">
<$macrocall $name="list-tagged-draggable" tag=<<currentTiddler>> subFilter="sortsub:version<sortsubFilter>"/>
</$vars>
Two comments:
1) It would be convenient if the "version" modifier to the sortsub operator was more tolerant of other types of version strings like #.# or #.#.# without the v
2) It seems like there ought to be an equivalent to a splitafter operator ... or a negation to the splitbefore operator .... that just grabs the string *after* the delimiter. Am I missing something? It would have made that sortsubFilter easier to enable chopping out the integer after the "." and used the "integer" modifier on the sortsub operator and not worried about the pickiness of "version".
Is there a simpler way that I am missing? This works but seems rather brute-force.
/Mike