Sorting order with a condition (column class)
Sorting order with a condition (column class)

Hi,
I'm wondering how can I achieved the following.
Sometimes the columns may have a class="hidden"
Sorting the table like this if column 0 and 1 are visible
"order": [[ 2, "asc" ],[ 0, "asc" ]],
Else if column 0 have class class="hidden" then
"order": [[ 2, "asc" ],[ 1, "asc" ]],
Thanks
This discussion has been closed.