Get Datatable data in current reordered/sorted order?
Get Datatable data in current reordered/sorted order?

I have a data table which has a functionality of row reorder and sorting. While saving the current status of the table i want to get data data in current reordered / sorted order.
I am using fnGetData() but its giving table data in original order at load.
Thanks.
This discussion has been closed.
Answers
try https://datatables.net/examples/basic_init/state_save.html
Thanks @prats for your reply. But its not working .
Its caching the data in app cache manager and maintains the state but not returning the reordered table data
Use the
selector-modifier
option that can be given to any of the selector methods. For example:to get the row data in the currently applied order.
Allan
Thanks @allan for your reply.
By setting selector-modifier option also i am still getting original order not the modified one.
Please show your code.
I don't actually see the selector modifier being used anywhere in that code. fnGetData is a legacy API method. The code I showed above will return the rows in the current order.
Allan
Tried
table.rows( { order: 'applied' } ).data()
but still showing the initiated row orderI believe this is regarding your other posts about getting table data in order after row reorder is complete. I answered you question in this thread.
Kevin