Skip to main content

compare_values

Function compare_values 

Source
pub fn compare_values(a: &Value, b: &Value) -> Ordering
Expand description

Compare two Values with type coercion, for sorting and extremum selection (ORDER BY, MIN / MAX, GREATEST / LEAST, window frames).

partial_compare_values with an unordered pair placed as Equal, so a stable sort keeps such rows in their input order. A predicate uses partial_compare_values instead.