Trying for days now (2 that is) to get tablesorter with Jquery to get the numbers correctly sorted. I am using the last versions of both scripts.
The table is rendered fine, but sorting of the numbers goes wrong. If sorted it gives the following result:
8 7 4 32 31 3 and so on.. where you would expect that: 32 31 8 etc would be displayed.
I read some comments on adding extra javascript code but no (for me to understand (not that much into javascript)) javascript example can be found.
the script I use now is basic and looks like this
$(document).ready(function()
{
$("#table1")
.tablesorter(
{
sortList: [[0,0]],
widthFixed: true,
widgets: ['zebra']
} )
}
);
Hoping for a good example that will resolve this issue for me.
/Fons
As per request the HTML result of the table
<table id="table1" class=tablesorter>
<thead>
<tr>
<th width=65>Name</th>
<th width=40>Count</th>
</tr>
</thead>
<tbody>
<tr><td>Name_1</td><td>32</td></tr>
<tr><td>Name_2</td><td>12</td></tr>
<tr><td>Name_3</td><td>11</td></tr>
<tr><td>name_4</td><td>14</td></tr>
<tr><td>Name_5</td><td>7</td></tr>
<tr><td>Name_6</td><td>3</td></tr>
<tr><td>Name_7</td><td>32</td></tr>
<tr><td>Name_8</td><td>31</td></tr>
<tr><td>Name_9</td><td>35</td></tr>
</tbody>
</table>
</body>
</html>
The only thing i changed in the result are the names. /Fons