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