jquery datatables default sort by using asSorting (not aaSorting)
jquery datatables default sort by using asSorting (not aaSorting)

Hi,
could i sort datatable by using asSorting only (ie, not aaSorting)
here is my work on http://jsfiddle.net/dsea/SFRXL/22/ and you see, the 1srt column is 'asc' and not 'desc' like I expected
[code]
$(document).ready(function() {
$('#example').dataTable( {
"aoColumns": [
{ "sType" : "numeric", "asSorting" : ["desc", "asc", "desc"] },
{ "sType" : "string" },
null
]
} );
} );
[/code]
thanks a lot
dsea
could i sort datatable by using asSorting only (ie, not aaSorting)
here is my work on http://jsfiddle.net/dsea/SFRXL/22/ and you see, the 1srt column is 'asc' and not 'desc' like I expected
[code]
$(document).ready(function() {
$('#example').dataTable( {
"aoColumns": [
{ "sType" : "numeric", "asSorting" : ["desc", "asc", "desc"] },
{ "sType" : "string" },
null
]
} );
} );
[/code]
thanks a lot
dsea
This discussion has been closed.