Defines a field name and the order type used to sort query results.
Description
The SortField class allows you to define a field used to sort query results. In addition, it allows you to specify the order typer as ascending or descending.
Constructors
Creates a new instance and assigns its values.
SortField(name: str = None, ascending: bool = True)
- name: str - the name of the field to sort by.
- ascending: bool - true to sort in ascending order, and false to sort in descending order.
Fields
Examples
filter = FilterParams.fromTuples("type", "Type1")
paging = PagingParams(0, 100)
sorting = SortingParams(SortField("create_time", true))
myDataClient.get_data_by_filter(filter, paging, sorting)