Issue with sorting percentage/html
Issue with sorting percentage/html
![chris geiger](https://secure.gravatar.com/avatar/9a1c7293a365f8afc58ee886a0f060bf/?default=https%3A%2F%2Fvanillicon.com%2F9a1c7293a365f8afc58ee886a0f060bf_200.png&rating=g&size=120)
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