Global Functionfwcd.swift-utils 4.6.2Utils
descendingComparator(comparing:)
A higher-order function that produces a descending comparator (as used by sorted(by:)) comparing two specific properties lexicographically.
func descendingComparator<T, P>(comparing property: @escaping (T) -> P) -> (T, T) -> Bool where P : Comparable