Skip to main content

encode_cypher_sort_key

Function encode_cypher_sort_key 

Source
pub fn encode_cypher_sort_key(value: &Value) -> Vec<u8> 
Expand description

Encode a Cypher value into an order-preserving binary sort key.

The resulting byte sequence has the property that lexicographic (memcmp) comparison of two keys produces the same ordering as Cypher’s ORDER BY semantics, including cross-type ordering and within-type comparisons.