Improved support for multi-row THEAD

Account for colspan in TH
Accept sorting hints from last row of THEAD