Traqula docs
    Preparing search index...
    registerOrderBy: AstIndir<
        "registerOrderBy",
        void,
        [QueryBase, Record<string, Expression>?],
    > = ...

    Aggregators used in an ordering are bound to a variable by the group operation. Such variables are replaced by the aggregator they represent.