Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: default table sort was always ascending (#444)
An ascending sort order is always triggered when then target index is different from the tablesort index. This was always true on a page (re)load, because index is initialized with null. By setting the instance' index to the default-sort column index we assure that the direction parameter to sort() is used. See https://github.com/kylefox/jquery-tablesort/blob/master/jquery.tablesort.js#L42 Co-authored-by: Raphaël Pinson <[email protected]>
- Loading branch information