I have a datatable with checkboxes similar to this example.
The checkboxes are made using the CSS :after and :before pseudo-elements so the column holding them has no values.
I am programmatically selecting some rows when the user clicks on a button, but would like the selected rows to appear at the top of the table. This is mainly so that the user sees something happening, especially when the selected rows are in non-visible pages.
Here is a fiddle: https://jsfiddle.net/b22kx27s/2/
I've tried looking into custom sort function to bring the selected rows to the top but couldn't figure out how to do it since the column has no values.