joequery/Stupid-Table-Plugin — pull request #117 by bunsen32 (2014-06-17 14:12:24+00:00)
Title: Only count <th>s on the current <tr>

One-line bug-fix!

To determine the column to sort, algorithm was summing 'colspan' values of all `	`s in the table, up to the one with the same index as the clicked `	`.

However, it should only have been examining the 'colspan' values of the `	`s in the `
` of the clicked `	`.

Gets the first ancestor `
` (`closest("tr")`) and examines its elements instead of the whole table.