Javascript 表排序器编号大于1000000

Javascript 表排序器编号大于1000000,javascript,tablesorter,Javascript,Tablesorter,嗨,伙计,我想知道如何使tablesorter与大于1000000的nombers一起工作,我使用以下格式示例:1000000我使用的代码如下,但它只与小于1000000的数字一起工作: $.tablesorter.addParser({ id: "digit", is: function (s, table) { var c = table.config; return $.tablesorter.isDigit(s, c); }, fo

嗨,伙计,我想知道如何使tablesorter与大于1000000的nombers一起工作,我使用以下格式示例:1000000我使用的代码如下,但它只与小于1000000的数字一起工作:

$.tablesorter.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"
});
我不知道这是否与以下方面有关:

this.isDigit = function (s, config) {
    // replace all an wanted chars and match.
    return /^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g, '')));
};`

您不必做任何特殊的事情来让tablesorter处理数字-没有额外的解析器,没有特殊的代码


我应该把代码放在哪里?我正在使用jquery表格分拣机,您能帮我吗?-一整页的。上述代码位于页面底部的
标记内。
$(function () {
    $('table').tablesorter({
        theme: 'blue',
        widgets: ['zebra']
    });
});