Issue with sorting percentage/html

Issue with sorting percentage/html

chris geigerchris geiger Posts: 9Questions: 0Answers: 0
edited June 2012 in General
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

Replies

  • chris geigerchris geiger Posts: 9Questions: 0Answers: 0
    This has been fixed.

    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.
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    It is a bit confusing this - I'm going to see what I can do about that in 1.10 (I know what I want, its backwards compatibility that is the tricky bit!).

    Good to hear you got it working though.

    Allan
This discussion has been closed.