Datatable API provides easiest way to do it.

"sDom": 'Rlfrtip',
"oColReorder": {
    "aiOrder": [8,7,2,3,4,5,6,0,1]
},

You can add any column order you want.

Advertisements