Sorting will revert old data

Sorting will revert old data

ymamchurymamchur Posts: 1Questions: 1Answers: 0
edited August 2017 in Free community support

Hi, I use DataTable with HTML (DOM) sourced data. For example I have data 2 columns name and surname and 2 rows like these

this.data = [{name: "test1", surname: "test2"}, {name: "test3", surname: "test4"}]

after table was drawn I rewrite data like :

this.data = []

so table was redrawn and it's great. But then I tried to sort column the data was revert for 2 sorted rows. looks like it was cached.
How I can fix this? Can you help me?

This discussion has been closed.