[jQuery] tablesorter order positive and negative numbers
<div>I have a tablesorter with a column with positive and negative numbers, and I`m using the tablesorter`s parser digit but it doesn`t order fine, is there any other parser that works ok?</div>
<div> </div>
<div>Thanks!! sole</div>
<div> </div>
<div> ts.addParser({
id: "digit",
is: function(s,table) {
var c = table.config;
return $.tablesorter.isDigit(s,c);
},
format: function(s) {
return $.tablesorter.formatFloat(s);
},
type: "numeric"
});</div>
<div> </div>
<div> $("#my_table").tablesorter({headers: {1: {sorter:'dateYYYY/MM/DD'}, 5: {sorter: 'digit'} },widgets: ['zebra']});</div>
<div> </div>