I have a table which contains column of Capacities like this :
<table id="datatable" class="display" width="100%">
<thead>
<tr>
<th>Col1</th>
</tr>
</thead>
<tbody>
<tr>
<td>2 Go</td>
</tr>
<tr>
<td>1 To</td>
</tr>
<tr>
<td>320 Go</td>
</tr>
<tr>
<td>2 To</td>
</tr>
<tr>
<td>500 Go</td>
</tr>
</tbody>
</table>
I'm trying to use jQuery dataTable to sort the column to produce the following:
2 Go
320 Go
500 Go
1 To
2 To
but can't figure out how to do it from reading the sorting and plugins docs.
I tried this solution, but can't make it work.