diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index ae096968..8397a7e1 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -548,7 +548,7 @@ timer = new Date(); } // children tr in tfoot - see issue #196 & #547 - // don't pass table.config to computeColumnIndex here - widgets (math) pass it to "quickly" index tbody cells + // don't pass table.config to CColumnIndex here - widgets (math) pass it to "quickly" index tbody cells c.columns = ts.computeColumnIndex( c.$table.children( 'thead, tfoot' ).children( 'tr' ) ); // add icon if cssIcon option exists icon = c.cssIcon ? @@ -2240,7 +2240,7 @@ cells = $rows[ i ].cells; for ( j = 0; j < cells.length; j++ ) { cell = cells[ j ]; - rowIndex = cell.parentNode.rowIndex; + rowIndex = i; rowSpan = cell.rowSpan || 1; colSpan = cell.colSpan || 1; if ( typeof matrix[ rowIndex ] === 'undefined' ) {