-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort routes alphabetically #254
Conversation
Hi thanks for sending, but I think it's best if they're displayed in the order sent, so the sender has control over the display order. |
What about make it optional? I can imagine option sortAlphabetically=true|false. Note that keep alphabetical order on server is really painful now ... see swagger-api/swagger-core#115 |
+1, alphabetically would eliminate a lot of tedious administration in our resources. |
Hi @tagliola I'd like to make this a configuration for the next version of swagger-ui. I'll tag this issue appropriately. |
You could make it configurable via a sorter param that takes a function much like java comparator. It would take 2 arguments and return a number less than, greater than or equal to zero depending on whether the first argument should come before, after or is comparably equal to the second argument. |
new option sortAlphabetical=true|false
see #496 |
* upstream/master: provide option sorter=[alpha|method] fixed undefined variable errors remove console.info swagger-api#254 alphabetical sort of apis and operations under apis new option sortAlphabetical=true|false updated distro to include swagger-api#493 Fix for issue swagger-api#492; HTML in response headers switched to snippet view swagger-api#491 updated versions, swagger-js Conflicts: dist/swagger-ui.js dist/swagger-ui.min.js src/main/coffeescript/view/SignatureView.coffee
new option sortAlphabetical=true|false
new option sortAlphabetical=true|false
As the title implies, sort the routes alphabetically. Currently, they are displayed in whatever order they are sent in.