Comparable

protocol Comparable : Equatable
  • Compares the reciever with another and returns their order.

    Declaration

    Swift

    func compare(other: Self) -> Order