Order
public enum Order : Encodable, Equatable
An enum that determines the order to sort the results based on a given key.
Parameters
key
|
The key to order by. |
-
Sort in ascending order based on
key
.Declaration
Swift
case ascending(String)
-
Sort in descending order based on
key
.Declaration
Swift
case descending(String)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws