ABPersonComparePeopleByName(_:_:_:)
Indicates how two person records get sorted.
Declaration
func ABPersonComparePeopleByName(_ person1: ABRecord!, _ person2: ABRecord!, _ ordering: ABPersonSortOrdering) -> CFComparisonResultParameters
- person1:
The first person.
- person2:
The second person.
- ordering:
Indicates whether to sort by first name or by last name. See 1619730 Sort Order.
Return Value
- kCFCompareLessThan when person1 goes before person2.
Discussion
kCFCompareEqualTowhenperson1andperson2have the same name.kCFCompareGreaterThanwhenperson1goes afterperson2.
See Also
Deprecated
ABAddressBookAddRecord(_:_:_:)ABAddressBookCopyArrayOfAllGroups(_:)ABAddressBookCopyArrayOfAllGroupsInSource(_:_:)ABAddressBookCopyArrayOfAllPeople(_:)ABAddressBookCopyArrayOfAllPeopleInSource(_:_:)ABAddressBookCopyArrayOfAllPeopleInSourceWithSortOrdering(_:_:_:)ABAddressBookCopyArrayOfAllSources(_:)ABAddressBookCopyDefaultSource(_:)ABAddressBookCopyLocalizedLabel(_:)ABAddressBookCopyPeopleWithName(_:_:)ABAddressBookCreate()ABAddressBookCreateWithOptions(_:_:)ABAddressBookGetAuthorizationStatus()ABAddressBookGetGroupCount(_:)ABAddressBookGetGroupWithRecordID(_:_:)