Title: Table Row Order Extension
Last modified: August 31, 2016

---

# Table Row Order Extension

 *  Resolved [Kathy Jones](https://wordpress.org/support/users/kathy-jones/)
 * (@kathy-jones)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/table-row-order-extension/)
 * I have the table press row order extension. I would like to sort rows alphabetically
   by the last name in row 1. I don’t seem to be able to find the code for that.
   Is there any way to add rows at the bottom of the table and then sort them alphabetically
   by Row A, which is the last name? Thank you.
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/table-row-order-extension/#post-6973801)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * If you have installed and activated the Extension, this should only need an extended
   Shortcode like
 *     ```
       [table id=123 row_order=sort row_order_sort_column=A row_order_sort_direction=DESC /]
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [Kathy Jones](https://wordpress.org/support/users/kathy-jones/)
 * (@kathy-jones)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/table-row-order-extension/#post-6973804)
 * Thank you, Tobias, for the information. However, when I entered the shotcode 
   shown above it did not sort alphabetically.
 * The names were entered in this order:
 * Jones Smith Brown Peterson Whitney
 * When I entered the shortcode into the page they were sorted as follows:
 * Jones Whitney Smith Peterson Brown
 * They were sorted, but not alphabetically. Thank you.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/table-row-order-extension/#post-6973805)
 * HI,
 * Can you please post a link to the page with the table where this problem happens,
   so that I can take a direct look? Thanks!
 * Regards,
    Tobias
 *  Thread Starter [Kathy Jones](https://wordpress.org/support/users/kathy-jones/)
 * (@kathy-jones)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/table-row-order-extension/#post-6973811)
 * It is just a sample page with the five names. The link is
    [http://www.qbfhs.ca/sample-table/](http://www.qbfhs.ca/sample-table/)
 * Thank you.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/table-row-order-extension/#post-6973858)
 * Hi,
 * thanks a lot! From what I see, the sorting is correct, the problem simply is 
   that you have enabled the “Table Head Row” checkbox, so that the table header
   row is not moved when the table is sorted.
    Just uncheck the “Table Head Row”
   checkbox or simply add a new first row with content like “Last Name” and “First
   Name”, which then stays at the top.
 * Regards,
    Tobias
 *  Thread Starter [Kathy Jones](https://wordpress.org/support/users/kathy-jones/)
 * (@kathy-jones)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/table-row-order-extension/#post-6973863)
 * Thank you very much. That worked. An easy fix – once you know where the problem
   lies!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/table-row-order-extension/#post-6973868)
 * 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](https://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘Table Row Order Extension’ 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

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

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