Namespace: tableSort

sh.libs.tableSort

Methods

(static) sortBy(id, options) → {jQuery}

Sort table by a given column

Parameters:
Name Type Description
id external:jQuery | string Selector or jQuery object for table
options object
Properties
Name Type Default Description
index number 0 Index of column to sort
sort string desc Order of sort. Accepts 'asc' or 'desc'
type string number Type of data to sort. Accepts 'number', 'string' or 'date'
Source:
Returns:
Type
jQuery