Sorting order with a condition (column class)
Sorting order with a condition (column class)
![lenamtl](https://secure.gravatar.com/avatar/2ca522d7801743968b6b37b30cfb16c9/?default=https%3A%2F%2Fvanillicon.com%2F2ca522d7801743968b6b37b30cfb16c9_200.png&rating=g&size=120)
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.