sortCol() - paulmaclean/datatables.webcomponent GitHub Wiki

type Function

Updates the table data with the given col index sorted. If the order is left null, the sort will be toggled between asc and desc (starting at asc)

Syntax

sortCol(index: number, order = null): void //order can be 'asc', 'desc' or null

Usage

dataTable.sortCol(0)