Skip to content

sortCol()

Paul edited this page Jan 2, 2019 · 2 revisions

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)

Clone this wiki locally