Custom sorting on values in a data-sort attribute with Jquery Datatables

后端 未结 2 1028
北恋
北恋 2020-12-14 01:44

I have to do some custom sorts with Jquery Datatables. I do not want to write custom sort functions for every custom sort.

I want to define a value to sort on and ha

2条回答
  •  有刺的猬
    2020-12-14 02:22

    You can use data-order attr, for example

    more information HTML5 data-* attributes

    提交回复
    热议问题
    Date Count
    Total