Function human_sort::compare [−][src]
pub fn compare(s1: &str, s2: &str) -> Ordering
Compares string slices
Example
use std::cmp::Ordering; use human_sort::compare; assert_eq!(compare("item200", "item3"), Ordering::Greater);
pub fn compare(s1: &str, s2: &str) -> Ordering
Compares string slices
use std::cmp::Ordering; use human_sort::compare; assert_eq!(compare("item200", "item3"), Ordering::Greater);