w2grid.localSort

Performs sort on local data set.
localSort([silent], [noResetRefresh])
silent boolean, optional indicates whether to display sort time in the status bar
noResetRefresh boolean, optional indicates whether to call .reset() and .refresh() after sort
Returns number of milliseconds it took to sort.

Description

Performs local sort based on the information in the .sortData array. This method only works on the local data source, when .url property is not set.
If you have grid defined in the following way: You can apply sort in the following way:

User Comments

comments powered by Disqus