1 2 3 4 5
use std::cmp::Ordering; pub fn sort_by_key<V>(a: &(&String, V), b: &(&String, V)) -> Ordering { a.0.cmp(b.0) }