Skip to main content

numeric_order

Function numeric_order 

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

Numeric order of a and b when both have a numeric reading (number, decimal, numeric string, bool). None when a side is not numeric. The order is total: NaN sorts above every number and equals NaN.