newMeasureSortFromLocators()
Home > @gooddata/sdk-model > newMeasureSortFromLocators
newMeasureSortFromLocators() function
Creates a new measure sort - sorting the result by values of the provided measure.
Signature:
export declare function newMeasureSortFromLocators(locators: ILocatorItem[], sortDirection?: SortDirection): IMeasureSortItem;
Parameters
Parameter | Type | Description |
---|---|---|
locators | ILocatorItem[] | complete locators |
sortDirection | 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