Trying to sort multiple columns

Trying to sort multiple columns

HamsterleHamsterle Posts: 1Questions: 0Answers: 0
edited September 2012 in DataTables 1.9
Hi,

I'm trying to sort multiple columns. I'm expecting it to sort ascending where the second column takes priority over the others, the 5th column has the lowest priority - it doesn't work.

This is my code :

[code]
$(document).ready(function() {
oTable = $('#example').dataTable({
"bPaginate" : false,
"bFilter" : false,
"bInfo" : false,
"bSortable":true,
"bSort" : true,
"aaSorting": [[ 1, "asc" ], [2, "asc"], [3, "asc"], [4, "asc"]],
"aoColumns" : [null,null, null, null,null,null, null]
});
});
[/code]

Do I have to create my own sort algorithm for this to work?

Replies

  • allanallan Posts: 63,395Questions: 1Answers: 10,451 Site admin
    No - that should work okay. Can you link us to your page which shows the error please?
This discussion has been closed.