KNContactBookOrdering

public struct KNContactBookOrdering

Helper struct with helper closures to help with sorting contacts either in a collection of KNContact objects or a KNContactBook.

Author

dragosrobertn

Version

1.0.0
  • Closure method to sort contact by their birthday during current year in ascending order (earlier first).

    Author

    dragosrobertn

    Version

    1.0.0

    Declaration

    Swift

    public static let thisYearsBirthday: (KNContact, KNContact) -> Bool

    Return Value

    A closure method which returns a boolean, to be used in sorting contacts by their birthday during current year.

  • Closure method to sort contact by their full name in ascending order (alphabetical order).

    Author

    dragosrobertn

    Version

    1.0.0

    Declaration

    Swift

    public static let fullName: (KNContact, KNContact) -> Bool

    Return Value

    A closure method which returns a boolean, to be used in sorting contacts by their full name.