{hero}

ordering

Since: DataTables 1.10

Feature control ordering (sorting) abilities in DataTables.

Description

Enable or disable ordering of columns - it is as simple as that! DataTables, by default, allows end users to click on the header cell for each column, ordering the table by the data in that column. The ability to order data can be disabled using this option.

Note that the ability to add or remove sorting of individual columns can be disabled by the columns.orderable option for each column. This parameter is a global option - when disabled, there are no sorting actions applied by DataTables at all.

Type

This option can be given in the following type(s):

Default

true

Example

Disable ordering in the table:

new DataTable('#myTable', {
	ordering: false
});

Related

The following options are directly related and may also be useful in your application development.