Link to home
Start Free TrialLog in
Avatar of denewey
denewey

asked on

Tablesorter Only sorting by Desc

I have tablesorter installed in my site and it works fine in many small table displays. Now I'm trying to use it for a large report table (21 columns, 100 - 500 rows). When I click on the header it does sort each column correctly in descending order, but it will not sort again in Ascending order. I've checked through the documentation to see if there is some config I need to set for this, but that doesn't make sense either because the sort works both ways in the all the other small tables I've used.

I do have css classes that specify width applied to the th's and td's and wondered if that had any affect on it. I tried removing the classes in the th's but that made no difference. I can't remove the classes in the td's because they also incorporate conditional color formatting which is essential to the report.

Is there any way I can force the tablesorter to also do the ascending sort in this table?
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Hi,
as this should normally work, could you please attach the generated html (and if data is loaded dynamically also the data response) OR if the page would be available from the internet a link to the page?
Without the source we would not be able to help.
Thanks and KR
Rainer
Avatar of denewey
denewey

ASKER

Since the data is confidential and the website is unavailable to the general public I am attaching a file that is the table section of the file generated with dummy data in it of 3 of the rows. There were a couple hundred rows in the original file. The data is pulled from a database and the table is generated with the data in it with a PHP class.
ts-test-file.html
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of denewey

ASKER

Bingo!

Missing was: $("#pan_plan_table").tablesorter();

Once I included that, it works just dandy. Thanks for your help!