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 | IExecutionDefinition | existing definition |
sortBy | ISortItem[] | (Optional) array of sort items to add to definition |
Returns:
always new instance