Order
public struct Order : Codable
A structure that defines an ordering to be applied when returning a list of results.
-
Defines an
Orderthat indicates sorting by the givenfield, in ascending order.Declaration
Swift
public static func ascending(_ field: String) -> OrderParameters
fieldThe field to sort by.
-
Defines an
Orderthat indicates sorting by the givenfield, in descending order.Declaration
Swift
public static func descending(_ field: String) -> OrderParameters
fieldThe field to sort by.
View on GitHub
Order Structure Reference