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

aaSorting Not Working

$
0
0

Hello,

I have a problem with aaSorting in datatables. When I sort 2 colums, it's working in the first time I visit the page which is located the datatable.

Then if I go to another page, or just refresh the current page where is located the datatable. The 2 columns which were supposed to be sorted are not sorted anymore. Only one of them is sorted.

I looked at the localStorage and found that the value of aaSorting changed to that :

,"aaSorting":[0,"asc",6,"desc"]

It seems that it losts the double array syntax. It must be like that : [[0,"asc"],[6,"desc"]]

For demo, you can see this link : http://live.datatables.net/bepageqe/2/edit?js,output

But it can't help because I don't know how to insert another html page in online JsBin. So you can not see my issue on it.

Thank you if you have any idea.


Viewing all articles
Browse latest Browse all 82273

Trending Articles



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