Formulas for bases sort/grouping order

I had a similar problem recently and a working solution was to output the wikilink in a list with the other item. Perhaps that could work here?