TableSorter: Fix column order when collecting headers
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Fri, 29 Nov 2013 21:47:44 +0000 (22:47 +0100)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Sat, 30 Nov 2013 19:18:29 +0000 (20:18 +0100)
commitcc8381344f661ec8aa27bdeeb8d973ba5406ce30
tree32c820bf72b2cf952a7cdec0af4aa5aebe2e65cc
parentbb21eaaa24dfb184955e4909f2f4e39eebe2373c
TableSorter: Fix column order when collecting headers

Before we did a 'lazy' explode of the columns and rows, a side
effect of this was that a header (A) on a row >= 1 would get a
headerIndex that was higher than that of the header (B) with a
rowspan, that would visually be after header (A).

This caused headers to control the wrong column

Bug: 53211
Change-Id: I852d2860951a4e48f7fb2f6bf8c26b986af3e727
resources/jquery/jquery.tablesorter.js
tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js