在表格分类器jQuery中对文件大小进行排序?

时间:2013-07-04 09:03:28

标签: jquery tablesorter

我将在B, MB, GB, TB的列中包含文件大小。我正在使用jQuery tablesorter。现在我正在使用表格分类器:

    $(document).ready(function() { 
        // call the tablesorter plugin 
        if ($("#product-table tbody td").length > 0){
        $("table").tablesorter({ 
            // sort on the first column and third column, order asc 
            sortList: [[0,0],[2,0]] 
        }); 
        }
    });  

如何按文件大小对列进行排序?

1 个答案:

答案 0 :(得分:0)

查看metric parser的tablesorter。