TableEditor.sortByColumn method
TableEditor › sortByColumn
Unofficial
Sort the table's body rows with the given comparator.Signature:
sortByColumn(focusRow: number, col: number, compareFn: (a: TableCell, b: TableCell) => number): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| focusRow | number | Row to focus after sorting. |
| col | number | Column index whose cells are passed to the comparator. |
| compareFn | (a: TableCell, b: TableCell) => number | Comparator receiving the two cells of col being compared. |
Returns: void