Hello there, My question concerns the Jquery plugin Tablesorter :
I've a problem with the sorting of a columns with prices, formatted like that : 135.35 €, 149.99 €, 1500 €, etc
The sorting works well with the numbers only, but when i add the Euro symbol , the sorting is not working anyore.
I have this ASC order for the third columns (see code below) :
1) 1435 €
2) 190 €
3) 834 €
As you can see there's something wrong. Can someone please tell me what should i do here?
Thank you very much,
Francois
The JS :
<script type="text/javascript" id="js">
$(document).ready(function() {
$("table").tablesorter({
});
});
</script>
The HTML : (3rd column needs to be sorted)
<table class="tablesorter" cellspacing="0" cellpadding="0" border="0">
<thead>
<tr>
<th width="50px">1</th>
<th width="120px">2</th>
<th width="280px" >3</th>
</tr>
</thead>
<tbody>
<tr>
<td>bla bla bla</td>
<td>bla bla bla</td>
<td>834 €</td>
</tr>
<tr>
<td>bla bla bla</td>
<td>bla bla bla</td>
<td>1435 €</td>
</tr>
<tr>
<td>bla bla bla</td>
<td>bla bla bla</td>
<td>190 €</td>
</tr>
</tbody>
</table>