ComputerScienceHouse / game-night

A board and card games database for Computer Science House.
https://game-night.csh.rit.edu
3 stars 5 forks source link

Add sorting to the API #21

Closed mfrancis95 closed 5 years ago

mfrancis95 commented 6 years ago

Use the sort query parameter to sort by a particular field. If no sort is specified, the default sort is on sort_name, as it is now. If a non-sort_name field is being used to sort by, sort_name is used second in the ordering.

Also add the optional order field, where the value is either asc or desc. The former is the default ordering.