I feed the json data into the table in one order, but I display the table in a different order. After I make a change to the table, if I log getSourceData(), the order of the new json data follows the order of how it was fed in, not how it is displayed.
I load the data in this order: date, lock, rooms_sold
but I display in this order: date, rooms_sold, lock
If you select 'lock' and click the button, the output of getSourceData() shows the change to the data, but it is in the order [date, lock, rooms_sold].
Why isn't the outputted data in the new order that I am displaying the table? Is this just how getSourceData() handles changes?