human_sort

Function compare

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

Compares string slices

ยงExample

use std::cmp::Ordering;
use human_sort::compare;

assert_eq!(compare("item200", "item3"), Ordering::Greater);