Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Sorting problem of Jquery table sorter
Sorting problem of Jquery table sorter
$.tablesorter.addParser({

Id: "floatsorter", // Specify a unique ID.

Yes: Function {

Returns false

},

Format: Function {

Return to s .. replace (/,/,""); //Delete comma

},

Type: "numeric" // Sort by value.

});

$("#mytable ")。 table sorter({ headers:{ 4:{ sorter:" float sorter " } });

I also copied/blog/1671801.

But I changed it, O(∩_∩)O hahaha ~