Validate 'sort' field in API requests
#1869

toolness wants to merge api-sort-validation into develop

We do not currently have an analysis of these two commits