sort by 2 columns
sort by 2 columns
![longknot52](https://secure.gravatar.com/avatar/fc27918cbed1cf623069bf8f32f87031/?default=https%3A%2F%2Fvanillicon.com%2Ffc27918cbed1cf623069bf8f32f87031_200.png&rating=g&size=120)
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
This discussion has been closed.
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