Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SortField

Defines a field name and order used to sort query results.

see

SortParams

Example

let filter = FilterParams.fromTuples("type", "Type1");
let paging = new PagingParams(0, 100);
let sorting = new SortingParams(new SortField("create_time", true));

myDataClient.getDataByFilter(filter, paging, sorting, (err, page) => {...});

Hierarchy

  • SortField

Index

Constructors

Properties

Constructors

constructor

  • new SortField(name?: string, ascending?: boolean): SortField
  • Creates a new instance and assigns its values.

    Parameters

    • Default value name: string = null

      the name of the field to sort by.

    • Default value ascending: boolean = true

      true to sort in ascending order, and false to sort in descending order.

    Returns SortField

Properties

ascending

ascending: boolean

The flag to define sorting order. True to sort ascending, false to sort descending

name

name: string

The field name to sort by

Generated using TypeDoc