• Resolved Kathy Jones

    (@kathy-jones)


    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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    (@kathy-jones)

    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

    (@tobiasbg)

    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

    (@kathy-jones)

    It is just a sample page with the five names. The link is
    http://www.qbfhs.ca/sample-table/

    Thank you.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    (@kathy-jones)

    Thank you very much. That worked. An easy fix – once you know where the problem lies!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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 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.