I have a CodeIgniter project that loads a table of data, an Account Name in the first column then indented in the first column it loads that accounts sub-brands. Then the 2nd thru 8th column are other datapoints I’d like to sort on. In this table sorting on sub-brands would be useless so I wouldn’t allow it.
I just installed the TableSorter plugin but it sorts on every row in the Accounts/Brands column, but I just need it to sort on account name and keep the groupings of account+brands together, not split them up.
So if I have layout:
Account
Brand A DataPt1 DataPt2...
Brand D DataPt1 DataPt2...
Brand 4 DataPt1 DataPt2...
Account
Brand Alpha DataPt1 DataPt2...
Brand IV DataPt1 DataPt2...
Account
Brand # DataPt1 DataPt2...
How could I sort on account and have the brands move with them? I can adjust the column layouts if account+brand would need to be separated etc
I ended up using this TableSorter mod which adds support for collapsible rows. It works great, I would like to change it a bit so instead of a +/- button to expand and collapse rows you could just click anywhere on the row though.