views:

51

answers:

1

Hi, I have this problem. I have a big table with categories in THEAD and in TBODY I have authors of articles. When i apply tablesorter on this table, I can sort it by columns

But I want to sort it by rows too, so I can tell, how many articles author has in which category. Is it possible?

Oh I forgot, I am using this tablesorter: http://tablesorter.com/docs/

A: 

It's hard to tell from the information you've provided but it sounds like you need grouping. You want to count the number of articles for each author and then sort authors by article count.

If that is the case, and it's not possible to do the grouping in the database, jOrder (http://github.com/danstocker/jorder) will be your best bet.

Anyway, it would help if you provided some more details on how your table looks like now and how you want it to look when you "sort by rows".

Dan Stocker
Thanks mate, thats exactly what i needed :)
Pirozek
Dan Stocker