Reputation: 69
I've been using DataTables 1.9.4 and everything looks really nice and is formatted well, but I am having some trouble with sorting columns. I populate the table with data when the page loads, and then later on I change some of the values using JS. After the data has changed the sorting function no longer seems to work correctly. I ran a few tests and realized that the initial data that is input is saved and it is always sorted by that and not the current value. I was wondering if there is any way to have it save the new values and sort by those.
Thanks -Ryan
Upvotes: 2
Views: 3067
Reputation: 1350
I think the datatables doesn't support this kind of operation. But I found this I think it's helpful. though it seems a little complicated. please refer to this url: http://www.datatables.net/examples/plug-ins/dom_sort.html.
Upvotes: 2