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?

Thanks!! sole

 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"
 });

   $("#my_table").tablesorter({headers: {1: {sorter:'dateYYYY/MM/DD'},   5:
{sorter: 'digit'}  },widgets: ['zebra']});

Reply via email to