lexical_sort

Function natural_lexical_cmp

Source
pub fn natural_lexical_cmp(s1: &str, s2: &str) -> Ordering
Expand description

Compares strings naturally and lexicographically

For example, "a" < "รค" < "aa", "50" < "100"