I'm trying to make an outline where the outline heading entries are sorted lexically instead of by their location. (Why? Because of an old joke book I'm rewriting in Typst).
I cannot for the life of me figure out how to modify the list of entries (or even how one would access it) used by the outline, I know how to target specific heading depths, or target specific kinds, but that is the extend of my knowledge.
My first idea was to query all level 1 headings (the ones I care about), sort them and then somehow used them in an outline function, but that fell in the wash.
Ideally a solution might space the entries above each new lexical symbol, buts that's second to it actually working