I've got a question. How to manage to change ordering thru the swagger. For example I've got a Menu model with fields: name and dishes. By GET I retrieve a list of menus and I would like to be able to choose in swagger if queryset should be ordered by name (alphabetically) or ordered by the numbers of dishes in menu (descending).
I managed to do something similar with filtering the queryset: enter image description here But I can't find solution for switching the ordering.