You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sortAppend does not work as expected when doing a multicolumn sort. the appended sort column(s) stick after each column, so when a 2nd column header is clicked, you end up with it being added after rather than before the appended sort column(s).
for example, if sortAppend is [[0,0]], and the user clicks on column 2, then sortList becomes [2,0,0,0], as expected. if the user then clicks on column 3, then sortList becomes [2,0,0,0,3,0,0,0], whereas I would except it to be [2,0,3,0,0,0].
sortAppend would behave more as expected if the appended sort columns were removed from the sortList just before adding additional columns when doing a multicolumn sort.
The text was updated successfully, but these errors were encountered:
FYI, here's my simple but functional work-around, in case it's helpful:
$("table.sortable").tablesorter({// sortAppend:[[0,0]], //broken; see sortBegin/sortEnd fix below}).bind("sortBegin",function(sorter){// fix: custom sortAppend that plays nice with multicolumn sorts sorter.target.config.sortList.push([0,0]);}).bind("sortEnd",function(sorter){// fix: custom sortAppend that plays nice with multicolumn sorts sorter.target.config.sortList.pop([0,0]);});});
sortAppend does not work as expected when doing a multicolumn sort. the appended sort column(s) stick after each column, so when a 2nd column header is clicked, you end up with it being added after rather than before the appended sort column(s).
for example, if sortAppend is [[0,0]], and the user clicks on column 2, then sortList becomes [2,0,0,0], as expected. if the user then clicks on column 3, then sortList becomes [2,0,0,0,3,0,0,0], whereas I would except it to be [2,0,3,0,0,0].
sortAppend would behave more as expected if the appended sort columns were removed from the sortList just before adding additional columns when doing a multicolumn sort.
The text was updated successfully, but these errors were encountered: