The following settings appear to have no effect on the generated UI. Both tags and endpoints appear in the order as declared in the spec.
app.UseRapiDocUI(c =>
c.GenericRapiConfig.SortTags = true;
c.GenericRapiConfig.SortEndpointsBy = "summary" // "path" or "method" or "none"
});