I have a column which is calculated based on another date column to show in a years/months/days format. I also want this column to be sorted as the date column but since it's a string it is sorting differently.
Here is my code to for datatable config.
"columnDefs": [{ // set default column settings
'orderable': false,
'targets': [1, 9]
}, {
"searchable": false,
"targets": [1, 9]
}],
"order": [
[5, "asc"]
] // set first column as a default sort by asc
Is there any way I can attach the sort for column 6 "At Work" to column 5?
Thanks for the help..
