Tablesorter sortList 故障?

Tablesorter sortList Malfunction?

Tablesorter sortList 出现故障?

为什么我不能使用 sortList 设置初始列排序顺序?

$(function(){
  $("#myTable").tablesorter({ 
    sortList : [[4,1]], // initial sort columns (2nd and 3rd)
    cssInfoBlock : "tablesorter-no-sort"
  });
});

谁能告诉我为什么?

使用 [[4,1]] 将对第 5 列进行排序(它使用零基索引)。

改为尝试此代码 (demo):

$(function(){
  $("#myTable").tablesorter({
    sortList : [[1,1],[2,1]], // initial sort columns (2nd and 3rd)
    cssInfoBlock : "tablesorter-no-sort"
  });
});