pub fn parse_sort(value: Option<&Value>) -> Result<Option<Vec<SortField>>>Expand description
Parse sort from request JSON into sort field specs.
Returns Ok(None) only when the sort key is absent. A sort value
of an unsupported type (e.g. a number), an unknown order/missing
string, or an unknown per-field option returns Err(InvalidQuery)
rather than silently dropping the sort — see
[[fix-strict-search-parsing]] and [[code-must-not-lie]].