Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
The order of the rows shown is based on the sorting of the table. One option might be to have a hidden column, using columns.visible, and have it as the primary column to sort the table using orderFixed. If the row is selected then set the value of the column to 0 and if not selected set it to 1.
How this would work is based on how you are selecting the rows now and your data structure. Here is a simple example using the Select extension. It uses the select and deselect events with rows().every() to loop through all the rows that have been selected or deselected. It uses the row().data() API to get and set the row data.
The example may need refactoring based on your specific solution.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.