Getting tablesorter properties
Hey all.
I'm using tablesorter, which is a great plugin.
I need a bit of guidance tho.
I'd like to preserve the user's sort preferences between refreshes by stashing sortList in a cookie.
How would I pull the current sort column in order to store it?
I'm thinking of using the sortEnd event in order to grab the current sortList, but I can't seem to get it.
$('#mytable').tablesorter({sortList: [[0,0]] }); // default for now, but load from cookie if it exists.
$('#mytable').bind('sortEnd', function() {
// need to get the current sortList here!
$.cookie( 'sortList', ?????, { expire: 365 });
});
Any input would be appreciated.