From ce96e5835c42dad882bdb65df72b32905f5a605d Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Mon, 10 Sep 2018 18:28:47 -0500 Subject: [PATCH] Core: Store sortList on init. Fixes #1585 --- js/jquery.tablesorter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index 07d7fd37..14ce1b61 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -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 );