Relative Content

Tag Archive for javascriptdatatable

DataTable with Absolute plugin changed the type of the column, ordering wrong

I am using DataTable to present the information in my table, but at a certain point I needed to add a line at the top, for this in my research I saw that there is the Absolute plugin. After that I was able to leave the specific line at the top, when necessary, using the first column (ID), of which all numbers are integers. However, when using this plugin, check that it transforms the field from INT to STRING, thus ordering the rest of the table incorrectly, as shown below:
ID 8 Fixed, ordering the rest on ID DESC:
Image
ID 8 Fixed, ordering the rest on ID ASC:
Image
Then the result is that is ordering as String, not as Int (Number).