Skip to main content

cmp_values

Function cmp_values 

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

Total order over two serde_json::Values.

Tier: Null < Bool < Number < String < Array < Object. NaN sorts AFTER all real numbers (NaN-last), consistent with camel_processor::sort::SortKey.

Shared by batch/stream resequencing policies (I3).