upswyng icon indicating copy to clipboard operation
upswyng copied to clipboard

default sort by favorites

Open jacobvenable opened this issue 3 years ago • 0 comments

related to #465 and #466

Description

When retrieving resources by category or subcategory, our API endpoint returns the list sorted by those open as well as those closest to the user. It'd be useful to update this sort to consider the user's favorites.

Checklist

  • [ ] when retrieving resources by a category and sub-category, and the user has favorites, the list of resources provided is sorted in the following order by default:
  1. resources that are open AND favorited sorted by those closest to the user
  2. resources that are open and NOT favorited sorted by those closest to the user
  3. resources that are closed AND favorited sorted by those closest to the user
  4. resources that are closed and NOT favorited sorted by those closest to the user
  • [ ] when retrieving resources by a category and sub-category, and the user does not have favorites, the list of resources is not sorted by favorites

Tech Notes

jacobvenable avatar Apr 20 '21 03:04 jacobvenable