pub(super) fn sorted<T>( outcomes: Vec<Outcome<T>>, sort: Sort, fault_key: impl Fn(&Outcome<T>) -> Cow<'static, str>, ) -> Vec<Outcome<T>>