Repeated colReorder.order() API calls do not work as expected
Repeated colReorder.order() API calls do not work as expected
When trying to update the column order repeatedly via the API, it works fine the first time, but subsequent attempts fail. Sometimes an additional update does nothing at all, other times (as in the example above) it moves some columns, but not others.
In the example above, any/all of the sorts will work after first loading the page. Changing to another sort after that does not work correctly.
If I call colReorder.reset() before another call to colReorder.order(), the result is what I expect without needing to reset first.
Answers
I forgot to mention: latest version of DataTables and colReorder, as you can see in the fiddle resource links.