function
Source: index.ts ↗
insightSorts()
Gets sorting defined in the insight.
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.