Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82443

Ordering from right to left?

$
0
0

I'm currently using HubSpot to display a lot of data in a table across 13 columns. Using DataTables I am able to order this data based on the 13th column which works perfectly.

"order": [[ 12, 'asc' ]] /* columns from left to right starting at 0 */

However, as this module is reused across many pages on my website, I've written a condition which hides the first column if you're on a particular page, meaning that you may only see 12 columns - breaking the order value.

Is there a way to reverse the order to read right to left so my 13th column becomes 0?


Viewing all articles
Browse latest Browse all 82443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>