Sort by hidden column, filter by display column
Sort by hidden column, filter by display column

I know I need to use this: https://datatables.net/reference/option/columns.render
but there are no examples on there of what the HTML has to look like? My data tables are not generated by JSON, they are created from a regular HTML table. What attributes do I need to include in my table cells?
This discussion has been closed.
Answers
I found out that I can just use the data-sort attribute on the <td> element?
Like on the following:
I found the anser here: https://stackoverflow.com/questions/7668047/how-can-i-get-jquery-datatables-to-sort-on-hidden-value-but-search-on-displayed