Title: Disable Initial Sort
Last modified: August 30, 2016

---

# Disable Initial Sort

 *  Resolved [gkarami](https://wordpress.org/support/users/gkarami/)
 * (@gkarami)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/disable-initial-sort/)
 * HI,
 * I need to disable initial sorting on table. But I want to have the sorting ability.
   
   I tried datatables_order=”false”, that works for disabling initial sorting, But
   unfortunately the column sorting will not work after that…
 * Cheers
    Ghazal
 * [https://wordpress.org/plugins/inline-google-spreadsheet-viewer/](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)

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

 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/disable-initial-sort/#post-6823579)
 * As per [the top hit on Google for the search query [DataTables disable initial sorting]](https://stackoverflow.com/questions/4964388/is-there-a-way-to-disable-initial-sorting-for-jquery-datatables),
   does setting [the `order` option](https://datatables.net/reference/option/order)
   to an empty array still work? (It’s the very first example on the documentation’s
   page, so I’m guessing it will.)
 * That would be `datatables_order='%5D%5B'` in a shortcode.
 *  Thread Starter [gkarami](https://wordpress.org/support/users/gkarami/)
 * (@gkarami)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/disable-initial-sort/#post-6823707)
 * I tried this code:
 * [gdoc key=”[https://docs.google.com/spreadsheets/d/1-I97L07L-Mzt-dPDLR3X729nQx0v1vIJBHhz1dE9YkU/edit&#8221](https://docs.google.com/spreadsheets/d/1-I97L07L-Mzt-dPDLR3X729nQx0v1vIJBHhz1dE9YkU/edit&#8221);
   datatables_order=”%5D%5B”]
 * It will disable initial and after load sorting both ….
 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/disable-initial-sort/#post-6823735)
 * I’m sorry, my mistake. Try `datatables_order='%5B%5D'` instead. (I mixed up the`
   D` and the `B`.)

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

The topic ‘Disable Initial Sort’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Meitar](https://wordpress.org/support/users/meitar/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/disable-initial-sort/#post-6823735)
 * Status: resolved