Home > Issues > 3
Add ability to sort shows
Type | Effort (Fibonacci) |
---|---|
Feature | 2 |
Right now, the shows display in the order in which they’re returned from the GraphCMS store. The GraphQL query that retrieves shows (in /lib/graphcms.js
) specifies orderBy: scheduledStartTime_DESC
. Give the user the ability to sort shows by title
(ascending and descending) and scheduledStartTime
(ascending and descending).
Acceptance criteria
- On shows page, UI allows user to choose sort order
- Could be
<button />
elements or a<select />
- Could be
- When user selects sort order, shows appear in chosen order
- Sort client-side, server-side, via GraphQL, or in
getServerSideProps
? Your choice. - Reasoning for choice included in code comments.
- Sort client-side, server-side, via GraphQL, or in