@codehint-ng/tree-table
Version:
A simple component to display tree-hierarchically data in table.
12 lines (11 loc) • 527 B
TypeScript
import { TreeTableItemShell } from './models';
import { SortFunction } from '../models';
export declare class SortHelper<T> {
private static otherShells;
private static shells;
private static sortFunction;
static getSorted<T>(shells: TreeTableItemShell<T>[], sortFunction: SortFunction<T>): TreeTableItemShell<any>[];
private static getShellsForLevel;
private static selectLevelShells;
static sortShells<T>(shells: TreeTableItemShell<T>[], sortFunction: SortFunction<T>): TreeTableItemShell<T>[];
}