Title: Ordering columns
Last modified: August 31, 2016

---

# Ordering columns

 *  Resolved [Florent](https://wordpress.org/support/users/frappi/)
 * (@frappi)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/ordering-columns/)
 * Hi,
 * Is there a possibility to set a default order for the columns of a datatable ?
   from the datatables.net documentation I see there is an option called **colReorder**
   but it’s not present in the plugin’s DataTables customization options. Am’I right?
 * _Set a default order for the columns in the table_
 *     ```
       $('#example').DataTable( {
           colReorder: {
               order: [ 5, 4, 3, 2, 1, 0 ]
           }
       } );
       ```
   
 * [https://datatables.net/reference/option/colReorder.order](https://datatables.net/reference/option/colReorder.order)
 * Thanks
 * [https://wordpress.org/plugins/inline-google-spreadsheet-viewer/](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/ordering-columns/#post-7203845)
 * At the very top of the DataTables documentation page:
 * > Please note – this property requires the [ColReorder](https://datatables.net/extensions/colreorder)
   > extension for DataTables.
 * This extension isn’t included in this plugin by default, because I haven’t tested
   it. But you can add it yourself using the `gdoc_enqueued_front_end_*` filters?
   If it works well for your table, let me know and I’ll consider including this
   by default in the next plugin release.
 *  Thread Starter [Florent](https://wordpress.org/support/users/frappi/)
 * (@frappi)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/ordering-columns/#post-7203871)
 * Hi Meitar,
 * Unfortunatly I’m not very confortable with WP tweak and I’m affraid I will not
   be able to make the test. Anyway this is not a big deal and it can wait some 
   time if you plan to add it to the plugin.
 * Thanks for the answer,
 * Florent

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Ordering columns’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/inline-google-spreadsheet-viewer.
   svg)
 * [Inline Google Spreadsheet Viewer](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Florent](https://wordpress.org/support/users/frappi/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/ordering-columns/#post-7203871)
 * Status: resolved