insightSorts()
Home > @gooddata/sdk-model > insightSorts
insightSorts() function
Gets sorting defined in the insight.
Signature:
export declare function insightSorts(insight: IInsightDefinition): ISortItem[];
Parameters
Parameter |
Type |
Description |
---|---|---|
insight |
insight to get sorts from |
Returns:
array of valid sorts
Remarks
Note: this function ensures that only sorts working on top of attributes and measures defined in the insight will be returned. Any invalid entries will be stripped.