Skip to main content

key_order_cmp

Function key_order_cmp 

Source
pub fn key_order_cmp(a: &str, b: &str) -> Ordering
Expand description

Compare two own-property keys for OrdinaryOwnPropertyKeys enumeration order: integer-index keys sort ascending-numeric and precede all string keys; two non-index keys compare Equal so a stable sort leaves them in insertion order. (Symbols are stored as @@…/#… string keys and are non-index, so they also fall into the stable-insertion-order tail.)