>> I'm not convinced. The argument to `@sortas` is for the index
>> generator; I would expect that the argument of `@sortas` gets
>> handled in verbatim mode, i.e., it gets completely ignored by TeX
>> except while writing the unsorted index file. In other words, `@`
>> should no longer start a command after the outermost `@sortas`
>> command has read its argument; there shouldn't occur any recursive
>> behaviour. The only limitations are balanced braces, but this is
>> necessary for other commands, too.
>
> Your intuition about how @sortas works or should work doesn't match
> how it is actually implemented.
Yeah, I typed too fast without thinking...
Will try to circumvent the issue within the LilyPond macro
framework.
Werner