aaSorting Not Working

aaSorting Not Working

abdelabdel Posts: 1Questions: 1Answers: 0
edited May 2015 in Free community support

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.

My datatables version is : 1.10.0

Thank you if you have any idea.

This discussion has been closed.