function
Source: sort.ts ↗
newMeasureSortFromLocators()
Creates a new measure sort - sorting the result by values of the provided measure.
export declare function newMeasureSortFromLocators(locators: ILocatorItem[], sortDirection?: SortDirection): IMeasureSortItem;
Parameters
Parameter | Type | Description |
|---|---|---|
locators | complete locators | |
sortDirection | (Optional) asc or desc, defaults to “asc” |
Returns
new sort item
Remarks
New measure sort is created from provided parts. Helpful eg. for just switching the direction of existing sort