Title: Lost sorting function
Last modified: August 21, 2016

---

# Lost sorting function

 *  Resolved [drizzle](https://wordpress.org/support/users/drizzle/)
 * (@drizzle)
 * [12 years ago](https://wordpress.org/support/topic/lost-sorting-function/)
 * Tobias,
 * Sorry to bother you with this, but I can’t figure out what’s causing this table
   to lose the sorting function:
 * [http://www.wyofootball.com/roster/](http://www.wyofootball.com/roster/)
 * I lose sorting when using the Autoptimize plugin to optimize JS on my site. It
   speeds things up, and I’d like to keep using it, but I believe it screws up the
   TablePress sorting.
 * Autoptimize does have an exclude scripts feature, so if you think there is a 
   TablePress script I should exclude, please let me know and I’ll try that.
 * Thanks, Scott
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years ago](https://wordpress.org/support/topic/lost-sorting-function/#post-4886187)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Yes, this is indeed caused by that minification plugin.
    From what I can see,
   the relevant JS file is already excluded, but if possible, please try excluding
   inline JavaScript code as well.
 * Regards,
    Tobias
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years ago](https://wordpress.org/support/topic/lost-sorting-function/#post-4886194)
 * Hi guys;
    I’m autoptimize’s developer. You can exclude the inline JS by adding
   a unique enough string from the inline script to the exclusion-list. Maybe “.
   dataTable” or “asStripeClasses” would do the trick?
 * hope this helps,
    frank
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years ago](https://wordpress.org/support/topic/lost-sorting-function/#post-4886441)
 * Hi Frank,
 * thanks for sharing that suggestion! Good to know that there’s a possibility for
   this.
    Scott, can you try that?
 * Regards,
    Tobias

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

The topic ‘Lost sorting function’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * 3 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/lost-sorting-function/#post-4886441)
 * Status: resolved