ColReorder/Type

ColReorder/Type

oscaresoscares Posts: 1Questions: 0Answers: 0
edited November 2011 in General
Hello,

I am having a problem with the order of the columns and data type, I have a table with several columns of numbers are arranged without problems, but if I wrap that data into a link order and is not numeric , is based on strings, 1,2,11,24 to 1,11,2,24, im test to:

"aoColumns": [ null,
{ "sType": 'numeric' },
{ "sType": 'numeric' },

but ... don´t work,

You know a possible solution?

thanks.

Óscar.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    Here's info on writing your own sort routines: http://www.datatables.net/plug-ins/sorting

    You probably want to copy one of the dom examples (bottom of page) or the "hidden title" examples (middle of page) and rewrite them a little to extract the innerText of your link and then convert sort numerically.
This discussion has been closed.