使用jQuery datatables 1.9.0
$('#list').dataTable( {
"bJQueryUI": true,
"iDisplayLength": 25,
"aaSorting": [[ 0, "desc" ]]
} )
尝试按ID排序时获取此屏幕
我该如何解决这个问题?
答案 0 :(得分:2)
尝试设置data type of particular column:
$(document).ready(function() {
$('#example').dataTable( {
"aoColumns": [
{ "sType": "numeric-comma" },
null,
null,
null,
null
]
} );
} );
答案 1 :(得分:0)
尝试natural-desc
$('#list').dataTable( {
"bJQueryUI": true,
"iDisplayLength": 25,
"aaSorting": [[ 0, "natural-desc" ]],
"aoColumns": [
{ "sType": "natural-desc" },
....
]
} )
中的Plugin List