SortParams

Defines a list of field names used to sort query results.

Inherits: List<SortField>

Description

The SortParams class allows you to define a list of field names used to sort query results. In addition, it allows you to specify the type of order as ascending or descending.

Constructors

Creates a new instance and initializes it with specified sort fields.

public SortParams(IEnumerable<SortField> fields = null)

  • fields: IEnumerable<SortField> - list of fields to sort by.

Creates a new instance and initializes it with specified sort fields.

public SortParams(AnyValueArray fields)

Examples

var filter = FilterParams.FromTuples("type", "Type1");
var paging = new PagingParams(0, 100);
var sorting = new SortParams(new SortField("create_time", true));

myDataClient.GetDataByFilter(filter, paging, sorting);

See also