How to get jQuery Tablesorter to sort descending by default?

前端 未结 3 524
半阙折子戏
半阙折子戏 2021-02-07 09:43

I can\'t figure this out. This question was also asked here http://www.nabble.com/TableSorter-plugin---default-column-sort-DESC-instead--How--to25180761s27240.html#a25180761 wi

3条回答
  •  走了就别回头了
    2021-02-07 10:13

    Simply use this, second item in array is sort order (0 = ascending, 1 = descending):

    .tablesorter({ sortList: [[0, 1]] });
    

提交回复
热议问题