Core: Store sortList on init. Fixes #1585

This commit is contained in:
Rob Garrison 2018-09-10 18:28:47 -05:00
parent 9d53e3b35b
commit d7372ef9e0

View File

@ -319,6 +319,8 @@
ts.applyWidget( table, true );
// if user has supplied a sort list to constructor
if ( c.sortList.length > 0 ) {
// save sortList before any sortAppend is added
c.last.sortList = c.sortList;
ts.sortOn( c, c.sortList, {}, !c.initWidgets );
} else {
ts.setHeadersCss( c );