@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
8 lines (7 loc) • 397 B
TypeScript
/**
* This method takes a list of column ids (the current order) and the desired column order
* and returns the column ids in the desired order, while keeping the hidden columns in their original order.
*
*/
export declare function sortColumnIdsByOrder(columnIds: string[], desiredColumnOrder: string[]): string[];
export declare function sortToIndexes<T>(x: T[], sortIndexes: number[]): T[];