Sorting table data across two table sets with jquery tablesorter

Posted by Peter on Stack Overflow See other posts from Stack Overflow or by Peter
Published on 2010-04-17T03:38:29Z Indexed on 2010/04/17 3:43 UTC
Read the original article Hit count: 289

Filed under:
|
|

I am using jquery table sorter and have two tables. Instead of sorting the data just in the first table, could there be a way to combine the data in the second table and sort both?

As an example, sorting column 1 on table 1 OR 2, will result in:

//ORIGINAL        //RESULT
TABLE 1           TABLE 1
col1 | col2       col1 | col2
1    | 1          1    | 1
3    | 3          2    | 2
5    | 5          3    | 3

TABLE 2           TABLE 2
col1 | col 2      col1 | col 2
2    | 2          4    | 4
4    | 4          5    | 5
6    | 6          6    | 6

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about tablesorter