When we build the HTML on server-side and only then apply DataTables, we can place the raw data in data-sort attribute and the formatted value on the cell's text, and it will properly sort the column.
I'm in such need, but data is coming as json, and I'm adding it as DataTable({data: object}).
I'm using columnDefs-render to format those values, and as we know DataTables uses the rendered string instead of raw data to sort.
I'd need some columnDefs setting to provide the raw data for sorting, but can't find how. Any ideas?
data-sortas an attribute using jQuery. If that doesn't sound like a viable option, please update your question and show us how you're datatable is defined / setup.