lexical_sort

Function cmp

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

Compares strings (not lexicographically or naturally, doesn’t skip non-alphanumeric characters)

For example, "B" < "a" < "b" < "ä"