defSetSorts()
Home > @gooddata/sdk-model > defSetSorts
defSetSorts() function
Creates new execution definition by merging new sort items into an existing definition.
Signature:
export declare function defSetSorts(def: IExecutionDefinition, sortBy?: ISortItem[]): IExecutionDefinition;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| def | existing definition | |
| sortBy | (Optional) array of sort items to add to definition | 
Returns:
always new instance