in Sources/MockoloFramework/Utils/SequenceExtensions.swift [27:35]
func sorted<T, U>(path: (Element) -> T, fallback: (Element) -> U) -> [Element] where T: Comparable, U: Comparable {
return sorted { (lhs, rhs) -> Bool in
if path(lhs) == path(rhs) {
return fallback(lhs) < fallback(rhs)
}
return path(lhs) < path(rhs)
}
}