Title: Row sorting
Last modified: August 30, 2016

---

# Row sorting

 *  Resolved [mamuhaji](https://wordpress.org/support/users/mamuhaji/)
 * (@mamuhaji)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/row-sorting/)
 * Hey Tobias,
 * I have designed a table and all works great so far. I would like to add raw sorting
   from the 2nd raw and am not sure on how to do that as my top raw is the heading
   raw which is fine.
    Raw 2 has seasons so I would like the sorting element to 
   start from raw 2. The tables aren’t on my live site yet as am still working on
   them on localhost. Please helppppp. I can email you a screenshot if you’d like.
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/row-sorting/#post-6799673)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Unfortunately, I don’t think that this is possible in an easy way, sorry. The
   DataTables JS library somehow supports this with custom renderers or similar,
   but as I have never done this myself, I can’t really help with it. You will likely
   have to find a custom solution based on the API functions of the external DataTables
   JavaScript API from [https://www.datatables.net/](https://www.datatables.net/)
 * Regards,
    Tobias
 *  Thread Starter [mamuhaji](https://wordpress.org/support/users/mamuhaji/)
 * (@mamuhaji)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/row-sorting/#post-6799891)
 * HI Tobias,
 * Thanks for the link, this is actually what am looking for [https://datatables.net/examples/basic_init/complex_header.html](https://datatables.net/examples/basic_init/complex_header.html)
   but am not sure on how to implement. My table is exactly like that without the
   sorting and I need to add the sorting. Any ideas or online tutorials.
    Thanks.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/row-sorting/#post-6799895)
 * Hi,
 * thanks for the clarification. Unfortunately, this can not yet be achieved with
   TablePress, as TablePress only supports one header row, while the approach needs
   two 🙁
 * I can therefore only suggest that you do this manually, i.e. copy/paste the current
   HTML into a page and adjust it to have two header rows, and then manually load
   the DataTables JS library on that, by adding the relevant JavaScript directly
   into the page.
 * Regards,
    Tobias
 *  Thread Starter [mamuhaji](https://wordpress.org/support/users/mamuhaji/)
 * (@mamuhaji)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/row-sorting/#post-6799919)
 * Thanks Tobias,
    Will let you know how it goes…
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/row-sorting/#post-6799920)
 * Hi,
 * sure, no problem! Sorry that I could not provide a direct solution here.
 * Best wishes,
    Tobias

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

The topic ‘Row 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/)

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