Order

public enum Order : Codable

An enum containing the ordering information

Usage Example:

To order ascending by name, we would write:

Order.asc("name")
  • Represents an ascending order with an associated String value

    Declaration

    Swift

    case asc(String)
  • Represents a descending order with an associated String value

    Declaration

    Swift

    case desc(String)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Description of the enum case

    Declaration

    Swift

    public var description: String { get }
  • Associated value of the enum case

    Declaration

    Swift

    public var value: String { get }