Title: Sorting work-around not sorting
Last modified: August 22, 2016

---

# Sorting work-around not sorting

 *  Resolved [D1](https://wordpress.org/support/users/d1/)
 * (@d1)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/sorting-work-around-not-sorting/)
 * Hello Tobias,
 * I am having trouble with the sorting work-around you suggested in
    [https://wordpress.org/support/topic/tablepress-not-sorting-columns-correctly?replies=8](https://wordpress.org/support/topic/tablepress-not-sorting-columns-correctly?replies=8)
   and [https://wordpress.org/support/topic/substitute-word-for-numbers-for-sorting-issues?replies=6](https://wordpress.org/support/topic/substitute-word-for-numbers-for-sorting-issues?replies=6)
 * I have made the extra column and added the custom commands code but now the column
   is not sorting at all. I have also installed the DataTables Sorting plugins.
 * `"aoColumnDefs": [ { "bVisible": false, "aTargets": [ 2 ] }, { "iDataSort": 2,"
   aTargets": [ 3 ] } ]`
 * Does this code look correct?
    I am trying to sort the ‘Approximate AUM’ column
   on page : [http://insurancelinked.com/fund-managers/](http://insurancelinked.com/fund-managers/)
 * Thanks
    ps. Great plugin
 * [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)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/sorting-work-around-not-sorting/#post-5672627)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Due to a small issue in the DataTables JS library, the `iDataSort` (or `orderData`)
   parameter also has to be written as an array. Therefore please try again with
 *     ```
       "columnDefs": [ { "visible": false, "targets": [ 2 ] }, { "orderData": [ 2 ], "targets": [ 3 ] } ]
       ```
   
 * (This is also the modern form of the command, but that doesn’t really matter 
   here.)
 * Then, you should not need the DataTables Sorting Plugins Extension for this table,
   so unless you are using it in another table, I suggest to turn that off.
 * Regards,
    Tobias
 *  Thread Starter [D1](https://wordpress.org/support/users/d1/)
 * (@d1)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/sorting-work-around-not-sorting/#post-5672646)
 * Hi,
 * The new code new code worked. I also turned off the DataTables Sorting Plugins
   Extension, thanks for letting me know.
 * Regards
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/sorting-work-around-not-sorting/#post-5672671)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](http://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘Sorting work-around not sorting’ 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/)

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