Overwrite sort order when using RowReorder
Overwrite sort order when using RowReorder
Hello,
I have been implementing DataTables in our product over the past 2 days and one issue I have come across is not being able to overwrite the sort column when I want to ReOrder rows.
For example I sort by a field of "name" so that they are in alphabetical order and then I go to drag "William" from the bottom to the top however because of the sort he stays at the bottom. Is there any way to overcome this?
Thanks in advance
This question has an accepted answers - jump to answer
Answers
No sorry. RowReorder uses a data swap method - so any ordering applied to the table will still be applied, regardless of what you do with RowReorder (although obviously the data will have been swapped in the rows!). It is not a DOM reordering plug-in like the jQuery UI Sortable library.
Allan