sort by 2 columns
sort by 2 columns
longknot52
Posts: 6Questions: 2Answers: 0
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Answers
I want to sort by two columns. I tried modifying this, but it didn't make any difference.
This is the code I'm using now. I also want to sort by column 4, but I don't see any documentation on how to add one more field to this mix.
$(document).ready(function() { $('#users').DataTable( { "order": [[ 0, "desc" ]] } ); } );Can anyone help with this?
Thank you.
See the second example in the
order
docs.Kevin