Title: JS Sorting problems
Last modified: August 24, 2016

---

# JS Sorting problems

 *  Resolved [lemond404](https://wordpress.org/support/users/lemond404/)
 * (@lemond404)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/)
 * Good day!
 * We’re trying to enable the sorting functionality of the table to show 10 rows
   but cannot pinpoint the error in the JS. Does anyone see the issue?
 * [http://www.l5flyers.com/results/](http://www.l5flyers.com/results/)
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/#post-6038917)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * The reason for this is that some JavaScript files seem to be missing in your 
   theme. When you open the JavaScript error log console in your browser, you should
   see the names of the files (jquery.colorbox.js and fitvids.js). As those files
   are missing, the call to the functions that they contain fails and raises an 
   error, due to which the execution of all JS on that page (including the pagination
   for TablePress) is stopped by the browser.
 * Regards,
    Tobias
 *  Thread Starter [lemond404](https://wordpress.org/support/users/lemond404/)
 * (@lemond404)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/#post-6038943)
 * Thank you! We see it now.
 * The theme works fine but our child theme is not for some reason.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/#post-6038951)
 * Hi,
 * most likely, you’ll just have to copy those files over from the parent theme.
 * Regards,
    Tobias
 *  [Guardsix](https://wordpress.org/support/users/guardsix/)
 * (@guardsix)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/#post-6038987)
 * Sorry, but I’ve got the same problem. I am not able to read the code. My coding
   ability is very limited. I do have the same tables on my development site (localhost)
   and it looks/works just fine.
 * I need some help!!
 * [http://www.guardsix6.com/start/science-fiction-books-toc-2/](http://www.guardsix6.com/start/science-fiction-books-toc-2/)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/#post-6039018)
 * Hi Guardsix,
 * thanks for your post, and sorry for the trouble.
 * In your case, the issue has a different reason: Table 2 on that page has only
   one row, but no header row. Such a header row is however necessary for the JS
   features. Please, either add a header row to table 2 or turn off the “Use DataTables”
   checkbox for it.
 * Regards,
    Tobias
 *  Thread Starter [lemond404](https://wordpress.org/support/users/lemond404/)
 * (@lemond404)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/#post-6039045)
 * Thanks Tobias! I copied the JS files to a new “scripts” folder in the child theme,
   updated an old functions.php file and the tables are now displaying per our settings.
 * Case closed. Thanks again.
 *  [Guardsix](https://wordpress.org/support/users/guardsix/)
 * (@guardsix)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/#post-6039047)
 * Thanks TobiasBg.
 * I noticed that I had hidden my first row but I also had checked that it was the
   header row. Once I unchecked that then everything worked just like on my development
   site.
 * Thanks again for your help. I really appreciate your tablepress plugin.
 * Jim C.
    [guardsix6@gmail.com](https://wordpress.org/support/topic/js-sorting-problems/guardsix6@gmail.com?output_format=md)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/#post-6039067)
 * Hi,
 * [@lemond404](https://wordpress.org/support/users/lemond404/)
    Very cool! That
   was an easy fix then 🙂
 * @ Guardsix
    Ah, that makes sense. When only one row is left, it can not be the
   header row, and that then caused this error. Good to hear that you found this!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘JS Sorting problems’ 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/)

 * 8 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/js-sorting-problems/#post-6039067)
 * Status: resolved