Trying to get some custom sorting going on and haven't been able to get it.
This is close to what my table structure looks like..
<table>
<thead>
<tr>
<th> data </th>
</tr>
</thead>
<tbody>
<tr>
<td>
<ul>
<li> 20 </li>
<ul>
<li> something </li>
</ul>
</ul>
</td>
</tr>
</tbody>
</table>
I want to sort on the number that sits in that first list element.
Have tried:
$("table").tablesorter({
textExtraction: function(node) {
return node.childNodes[0].childNodes[0].innerHTML;
}