Issue with sorting percentage/html
Issue with sorting percentage/html
chris geiger
Posts: 9Questions: 0Answers: 0
Hello,
Having an issue sorting a column with HTML and a number with a Percentage. The column does not sort properly and does not allow me to click on the header to sort it. I receive javascript errors on loadup as well such as: TypeError: 'undefined' is not a function (evaluating 'q[d+"-"+k[f][1]](t[I]._aData[c],t[Y]._aData[c])').
Here is the debug report: http://debug.datatables.net/egoqey
Having an issue sorting a column with HTML and a number with a Percentage. The column does not sort properly and does not allow me to click on the header to sort it. I receive javascript errors on loadup as well such as: TypeError: 'undefined' is not a function (evaluating 'q[d+"-"+k[f][1]](t[I]._aData[c],t[Y]._aData[c])').
Here is the debug report: http://debug.datatables.net/egoqey
This discussion has been closed.
Replies
I basically had it set to num-html-desc and I also called the desc from the aaSorting. So it was showing up num-html-desc-desc. Which was patched by removing the -desc from the sType.
Good to hear you got it working though.
Allan