ColReorder doesn't work properly with json data with indexes?

ColReorder doesn't work properly with json data with indexes?

affaronaffaron Posts: 1Questions: 1Answers: 0

Hi,
I've encountered an issue with colReorder extension. When I use the "data" option with json data in there it seems like reordering works only for column headers but not for the whole column. As I understand it's because I use numeric indexes in json data like this:
{0: "data0", 1: "data1", ... }
Here's an example: http://live.datatables.net/wazafepu/1/edit?html,js,console,output

If I replace numeric indexes with string keys and define them using "columns" or "columnDefs" option it works fine. The reason it's not a good choice for me is because I have a lot of columns and it's gonna be a pain to define all of them and to not forget to make changes every time I add or remove a column.

So is it a bug or is there a way to make it work with default indexes?
Thanks a lot

This discussion has been closed.