I’ve tried to make a widget that can sort a group of rows separately inside a table and at the same time make the row-group to stick with “grouped rows”. I can’t figure out how to approach this problem …
EDIT: I want to sort on the non colspan columns. every group should behave as a sub-table
Basic setup in jsfiddle, can anyone push me in the right direction ?
EDIT: new jsfiddle http://jsfiddle.net/L8bwW/28/
Here is a Working example that does not use tablesorter.
The key is to use the
tbodyelement to group your rows. Then sort all rows but the last, within each tbody.The table might look like this:
And a sort fn for it might look like this: