From 38b4c8d9d5079c0894a5e5fcd9419516e0f6a699 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Mon, 30 Apr 2018 16:23:17 -0500 Subject: [PATCH] Core: Use indexed headers. Fixes #1524 --- js/jquery.tablesorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index 9e40e4e1..aee8e77b 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -520,7 +520,7 @@ $cell = ts.getClosest( $( this ), '.' + ts.css.header ); // use column index from data-attribute or index of current row; fixes #1116 c.last.clickedIndex = $cell.attr( 'data-column' ) || $cell.index(); - cell = c.$headers[ c.last.clickedIndex ]; + cell = c.$headerIndexed[ c.last.clickedIndex ]; if ( cell && !cell.sortDisabled ) { ts.initSort( c, cell, e ); }