Core: Store sortList on init. Fixes #1585

This commit is contained in:
Rob Garrison 2018-09-10 18:28:47 -05:00
parent aa3c150b0e
commit ce96e5835c

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 );