-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
User Story
When searching for resources, the user should be able to sort results by course number if desired. When a department is selected, the sort should apply only to courses within that department.
Description/Context
sort_coursenum was added to indexed course documents in #173. The search API should allow sorting on that field if specified in query parameters.
This is a port of existing functionality from open-discussions.
- Issue: Make OCW courses searchable and sortable by extra course numbers open-discussions#3453
- PR: sort by department coursenum when there is a department filter open-discussions#3457 and department course number sort ocw-hugo-themes#134
Acceptance Criteria
- Search results for courses ordered by
sort_coursenumif query parameter is passed. - Search results for courses ordered by
sort_coursenumonly within selected department(s) if any.
Plan/Design
- Add an optional query parameter that the search API accepts to sort by
sort_coursenum, ascending or descending. - Make sure the option is documented in the API schema
Metadata
Metadata
Assignees
Labels
No labels