Title: [Plugin: WP-Table Reloaded] A Sorting problem
Last modified: August 20, 2016

---

# [Plugin: WP-Table Reloaded] A Sorting problem

 *  [Tumling79](https://wordpress.org/support/users/tumling79/)
 * (@tumling79)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-a-sorting-problem/)
 * I like the plugin.
    My table is a ranking table, where column 0 is Ranking (1,
   2, 3, etc) and the rest is names, win, draw, etc… And column 7 is Points.
 * I have table with 7 columns, i would like to luck or close column 0 and have 
   the 6 other columns sorting after column 7 DESC.
 * But can that be done and if, how ?

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-a-sorting-problem/#post-2213313)
 * Hi,
 * I’m not yet really sure what you want to achieve.
    Can you maybe post a link 
   to the page with table, so that I can get an idea on what you want to do?
 * Regards,
    Tobias
 *  Thread Starter [Tumling79](https://wordpress.org/support/users/tumling79/)
 * (@tumling79)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-a-sorting-problem/#post-2213325)
 * Sure…
    [http://www.soulstones.dk/?p=270](http://www.soulstones.dk/?p=270)
 * Its the “Final Standing” table.
    column 0 should never change it should always
   be ASC. And as default the table should be storting after column 6 as DESC.
 * As it is now, the table is sorting after column 6 DESC, but that makes column
   0 wrong… It should say 1,2,3,4 etc.
 * I hope you can see what i mean?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-a-sorting-problem/#post-2213342)
 * Hi,
 * ok, thanks for the link.
    So you actually want to fix column 0, so that it never
   changes, while the rest of the table can change depending on how someone sorts
   it. And by default, you want to sort DESC on column 6 (which you already do with
   the “Custom Command” that you have added).
 * Now, I’m not really sure if this is possible with the DataTables library, but
   if it is, you are likely looking for the “bSortable” parameter, see [http://datatables.net/usage/columns#bSortable](http://datatables.net/usage/columns#bSortable)
 * To use that in your table, just extend the current “Custom Commands” to
 *     ```
       "aaSorting": [[6,'desc']], "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ]
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [Tumling79](https://wordpress.org/support/users/tumling79/)
 * (@tumling79)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-a-sorting-problem/#post-2213355)
 * it does not look like its working 🙁
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-a-sorting-problem/#post-2213387)
 * Hi,
 * that’s too bad 🙁 Unfortunately, I don’t know a solution then 🙁 I suggest that
   you check out the DataTables website at [http://www.datatables.net](http://www.datatables.net)
   and maybe ask in their forums on whether such a feature is actually available
   or possible.
 * Best wishes,
    Tobias
 *  Thread Starter [Tumling79](https://wordpress.org/support/users/tumling79/)
 * (@tumling79)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-a-sorting-problem/#post-2213417)
 * I will do that…
    Thanks for your help.

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

The topic ‘[Plugin: WP-Table Reloaded] A Sorting problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-table-reloaded_f7dcd3.svg)
 * [WP-Table Reloaded](https://wordpress.org/plugins/wp-table-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-table-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-table-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-table-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-table-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-table-reloaded/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Tumling79](https://wordpress.org/support/users/tumling79/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-a-sorting-problem/#post-2213417)
 * Status: not resolved