init(key:ascending:comparator:)
Creates a sort descriptor with a specified string key path and ordering, and a comparator block.
Declaration
init(key: String?, ascending: Bool, comparator cmptr: @escaping Comparator)Parameters
Return Value
A sort descriptor that initializes with the specified key, ordering, and comparator.