This uses the OrderingFilter general filter back-end to provide an ordering query parameter. This can be used to explicitly control the ordering of the API results.
For example, /api/submission/?ordering=complete_time and api/submission/?ordering=-complete_time will return the submissions filtered by the time they were completed at, ascending and descending respectively.
I added orderings to the submission, transcription and volunteer endpoints.
Relevant issue: Closes #172
Description:
This uses the
OrderingFilter
general filter back-end to provide anordering
query parameter. This can be used to explicitly control the ordering of the API results.For example,
/api/submission/?ordering=complete_time
andapi/submission/?ordering=-complete_time
will return the submissions filtered by the time they were completed at, ascending and descending respectively.I added orderings to the
submission
,transcription
andvolunteer
endpoints.Checklist: