Sorting count column with html text in the cell using natural sorting plugin or render method
Sorting count column with html text in the cell using natural sorting plugin or render method
I have a data table and I am having a difficult time initializing the 'numbers with html' data tables plug-in https://datatables.net/plug-ins/sorting/num-html.
Another thing I've tried to do was using a function in the render method to sort the raw data first, then add the html text to values. I am having no luck with either approach.
It's initially sorted on 'Count' DESC. However once I execute my function that modifies and appends html to each of the cell in that column it is no longer sortable.
jsfiddle: https://jsfiddle.net/pnnorhtg/