1use std::ops::Deref; 2 3use crate::JustString; 4 5impl Ord for JustString<'_> { 6 fn cmp(&self, other: &Self) -> std::cmp::Ordering { 7 self.deref().cmp(&**other) 8 } 9}