Ordering
public final class Ordering
Ordering factory.
-
Create an Ordering instance with the given property name.
Declaration
Swift
public static func property(_ property: String) -> SortOrder
Parameters
property
The property name.
Return Value
The SortOrder object used for specifying the sort order, ascending or descending order.
-
Create an Ordering instance with the given expression.
Declaration
Swift
public static func expression(_ expression: ExpressionProtocol) -> SortOrder
Parameters
expression
The Expression object.
Return Value
The SortOrder object used for specifying the sort order, ascending or descending order.