Why value cannot be sent as a sort expression, or undefined when it can: the
tokenProblem rules, then Solr's syntax, a comma-separated list of a field (or function)
and a direction, metadata_modified desc, name asc. A criterion without asc/desc is
refused here rather than as CKAN's HTTP 400 (Invalid "sort" parameter). An unknown field is
not caught: CKAN sorts by its default then, as documented.
Why
valuecannot be sent as a sort expression, or undefined when it can: the tokenProblem rules, then Solr's syntax, a comma-separated list of a field (or function) and a direction,metadata_modified desc, name asc. A criterion withoutasc/descis refused here rather than as CKAN's HTTP 400 (Invalid "sort" parameter). An unknown field is not caught: CKAN sorts by its default then, as documented.