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.

Tries numeric comparison first (with bool coercion), then falls back to string comparison.