Reputation: 127
I have one datatable which I created using jQuery. It has five column and I am sorting it by its third column. like this:
"aaSorting": [[2, 'desc']]
So, My query is this: If two rows have the same data for column third, then I want to sort those rows by some other column. How can I do that?
Upvotes: 0
Views: 1246
Reputation: 58860
You can specify more than one column with aaSorting
option (DataTables 1.9) or order
option (DataTables 1.10+).
For example:
"aaSorting": [[2, 'desc'], [3, 'asc']]
Upvotes: 2