defWithSorting()
Home > @gooddata/sdk-model > defWithSorting
defWithSorting() function
Changes sorting in the definition. Any sorting settings accumulated so far WILL be wiped out.
Signature:
export declare function defWithSorting(definition: IExecutionDefinition, sorts: ISortItem[]): IExecutionDefinition;
Parameters
Parameter | Type | Description |
---|---|---|
definition | IExecutionDefinition | definition to alter with sorting |
sorts | ISortItem[] | items to sort by |
Returns:
new execution with the updated sorts
Remarks
This function MUST be used to implement IPreparedExecution.withSorting();