I need help sorting a table with the following data. I want to arrange column A in ascending order and column B in descending order.
A B C
1 4 string1
2 11 string2
1 13 string3
2 43 string4
My goal is to sort by both columns A (ascending) and B (descending) simultaneously, resulting in this arrangement:
A B C
1 13 string3
1 4 string1
2 43 string4
2 11 string2
Currently, I am only able to sort one column using the code below:
oTable.api().columns( ['.acol'] ).order("asc").draw();