Ordering
public class Ordering
A small class to create parameters used for ordering the responses when querying an endpoint
that returns a colleciton of resources.
See: ChainableQuery.order(by order: Ordering...)
-
Initializes a new
Orderingoperator.Throws
An error if the keypaths specified in the ordering are not valid.Declaration
Swift
public init(_ propertyKeyPath: String, inReverse: Bool = false) throwsParameters
propertyKeyPathThe key path of the property you are performing the Query.Operation
against. For instance,“sys.id”`inReverseSpecifies if the ordering by the sys parameter should be reversed or not. Defaults to
false. -
Initializes a new
Orderingoperator.Throws
An error if the keypaths specified in the ordering are not valid.Declaration
Swift
public convenience init(sys: Sys.CodingKeys, inReverse: Bool = false) throwsParameters
sysThe
Sys.CodingKeyof the system property you are performing theQuery.Operationagainst.inReverseSpecifies if the ordering by the sys parameter should be reversed or not. Defaults to
false.
View on GitHub
Ordering Class Reference