Override Swagger sorting

2019-07-19 18:38发布

问题:

I want to organize my swagger api in reverse alphabetical order but it defaults to alphabetical. Is there a simple way to do this? Specifically using Swashbuckle.Core 5.2.1

回答1:

You can create a sorter for the UI for both the operations (operationsSorter) and tags (apisSorter).