title: DataTables: how to reorder a column in datatables using Javascript or any function
body: <p>I am using <strong>ColReorder</strong> extension of <strong>datatables</strong>. And I want to rearrange a column in a table using some function and not manually dragging the column. I know there is a function <code>order()</code> which takes an array as parameter.</p>
  
  <p>But this method is not good to move a single column at a time as it has performance constraints when number of columns are large</p>