aish12 / parksrus

2 stars 0 forks source link

Add Sorting #57

Closed aish12 closed 6 years ago

aish12 commented 6 years ago

We expect this to take around 10 hours, it took 7.

aish12 commented 6 years ago

What sort of things should we sort on for each model?

ChimdinduDenalexOrakwue commented 6 years ago

We could sort on fields that have numerical values and things like the name we can sort in alphabetical order

ChimdinduDenalexOrakwue commented 6 years ago

Flask Restless already let's us sort via the API, so we just need to implement it on the front end. It'll probably take a day or so

danielczheng commented 6 years ago

Cities can be sorted by city, state, num_parks; Parks can be sorted by name, city, state, rating; Snapshots can be sorted by views. Any of these can be sorted in alphanum order ASC/DESC. Is there anything else I missed?