OrderActionsBy
should take IComparer<ApiDescription>
or second argument IComparer<string>
#2001
Labels
OrderActionsBy
should take IComparer<ApiDescription>
or second argument IComparer<string>
#2001
Currently it takes
Func<ApiDescription, string>
, and it is used with.OrderBy()
, without StringComparer or CultureInfo. Without them, doc might be rendered in different order between runtime environments, and we can't control it.I wanted those endpoints to be sorted in this order
I had to write this code:
If we could provide
StringComparer.Ordinal
to.OrderBy
, then it would've beenBut I'd like to remove the funky '\0' with IComparer<ApiDescription>,
The text was updated successfully, but these errors were encountered: