DataManager API

All the methods listed here are available on the datatable.datamanager property.

Example

const datatable = new DataTable(container, options);
datatable.datamanager.getRows();

sortRows

Sorts rows according the values in the column identified by colIndex and order sortOrder.

sortRows(colIndex: Number, sortOrder: 'asc | desc | none'): void

// Usage
datatable.datamanager.sortRows(data, columns);

On this page