[Answered ]-Separate Totals row from tablesorter in django

2πŸ‘

βœ…

I think you problem is only with tablesorter (not with django). The easiest way to leave the last row unsorted (as in a totals row) is to organize you table with thead, tbody and tfoot. Something like:

<thead>
    <tr>
    ....
    </tr>
</thead>
<tbody>
    <tr> ... </tr>
    <tr> ... </tr>
</tbody>
<tfoot>
    <tr>
       <td>Total</td><td> ... </td> ...
    </tr>
</tfoot>

The row nested in the tfoot tag won’t be sorted.

πŸ‘€jheyse

Leave a comment