I have a table that looks like this...
<table id="myTable">
<tr>
<td><a href="site.com?id=1">1</a></td>
<td>Foo</td>
</tr>
<tr>
<td><a href="site.com?id=9">9</a></td>
<td>Bar</td>
</tr>
<tr>
<td><a href="site.com?id=10">10</a></td>
<td>Baz</td>
</tr>
</table>
I need to make it so my Bootstrap Datatables scripting will sort by the inner HTML of the anchor tag, and sort it numerically. Currently it is sorting it like this...
1 Foo
10 Baz
9 Bar
But I need it to be sorted like this...
1 Foo
9 Bar
10 Baz
I'm not really sure how to go about this. I have it sorting, but it thinks the inner HTML is a string, not a number :(