tablesorter and default sorting

tablesorter and default sorting

Hello everyone,

I use tablesorter provide an interface with sortable tables.
I tried to sort DESC (only for the first display) on the second column, this is my code :





  1. <script type="text/javascript">
    $ (document). ready (function ()
    {
    $ ("# myTable"). tablesorter ({
    sortInitialOrder: 'desc'
    sortList [[1,1]] / / etc.

    });
    }
    );
    </ script>









It works for a static usage.

So, when my page is loaded, my second column is sorted DESC. But if I want to sort on another column, my second column concerve the javascript script sorting, and I can not make others sorts as if i delete my default javascript code.

I don't think it is a bug but i don't find the good sort function to use.



I hope to be clear enough, my English is rough and I apologize in advance.

Thanks for any help !