Given a DOI Search page
When I perform a search that returns >1 results and try to sort by identifier in ascending order
Then I expect the results to reorder by identifier in ascending order
Given a DOI Search page
When I perform a search that returns >1 results and try to sort by DOI in descending order
Then I expect the results to reorder by DOI in descending order
Given a DOI Search page
When I perform a search that returns >1 results and try to sort by title in ascending order
Then I expect the results to reorder by title in ascending order
💪 Motivation
...so that I can easily sort from a user interface
📖 Additional Details
Need to update the API to support something like
&sort=title desc
. Related to feature request at https://github.com/NASA-PDS/pds-wds-react/issues/10⚖️ Acceptance Criteria
Given a DOI Search page When I perform a search that returns >1 results and try to sort by identifier in ascending order Then I expect the results to reorder by identifier in ascending order
Given a DOI Search page When I perform a search that returns >1 results and try to sort by DOI in descending order Then I expect the results to reorder by DOI in descending order
Given a DOI Search page When I perform a search that returns >1 results and try to sort by title in ascending order Then I expect the results to reorder by title in ascending order
⚙️ Engineering Details