Assuming a generic query like:
SELECT * FROM items
ORDER BY type ASC, created DESC
Is there any convention about designing a query string for building a Sorter class for result ordering? What about appending the direction after the sort key?
/items/list?sorts=typeASC,createdDESC // ORDER BY type ASC, created DESC
Missing equals to ASC:
/items/list?sorts=type,createdDESC // ORDER BY type ASC, created DESC
Check out the Open Data Protocol (OData):
Here’s an example of what it looks like in action: