Contents

ABPersonComparePeopleByName(_:_:_:)

Indicates how two person records get sorted.

Declaration

func ABPersonComparePeopleByName(_ person1: ABRecord!, _ person2: ABRecord!, _ ordering: ABPersonSortOrdering) -> CFComparisonResult

Parameters

  • 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

  • kCFCompareEqualTo when person1 and person2 have the same name.

  • kCFCompareGreaterThan when person1 goes after person2.

See Also

Deprecated