Mottie/tablesorter — pull request #195 by emmerich (2012-12-17 12:09:53+00:00)
Title: Ability to sort tables with multiple tbodies

Currently, tables with multiple tbodies can be sorted only within the tbody. That is, the rows inside each body are sorted relative to each other, but bodies remain relatively autonomous.

There's a use case where the user may wish to sort between bodies and either:
a) sort the rows inside the body too
b) leave the rows inside each body static, but have the bodies rearrange themselves

The patch supplied adds this functionality through the use of a bodyCache which works in a similar way to the current row cache.

The body cache is computed whenever sorting via bodies is enabled, and composes a cache identical to one "body" entry in the row cache, but spread across multiple bodies. Each "row" entry in the body cache is the normalized values of the "primary row" in each body.

A primary row is defined as a row that supplies the data for each column required for sorting that body.

I've attached some examples as to how to use the new functionality, and I'm fairly sure it remains backwards compatible with existing tablesorter configurations (all other examples still work)