sort by 2 columns

sort by 2 columns

longknot52longknot52 Posts: 6Questions: 2Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

  • longknot52longknot52 Posts: 6Questions: 2Answers: 0

    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.

  • kthorngrenkthorngren Posts: 21,342Questions: 26Answers: 4,954

    See the second example in the order docs.

    Kevin

Sign In or Register to comment.