I know that I can sort with CNContacts as follows:
let fetch = CNContactFetchRequest(...) fetch.sortOrder = .UserDefault
Question: how can I find what sort order is? In addition to some hacker heuristic studying what comes back from the enumeration to choose from.
There is an old call to ABPersonGetSortOrdering (), which is likely to remain for a while, but there is certainly a CNContact way.
source share