• Resolved gsbohn

    (@gsbohn)


    Hello Tobias, still loving this script.

    I continue to add different dated material to the bottom next row, but it isn’t not always a consecutive date from the last entry. Is there a way that the first column will auto sort when the page is displayed. As it is now, I have to have a notice to users to use the sort date.

    Thanks.
    Genie

    http://wordpress.org/extend/plugins/tablepress/

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

    (@tobiasbg)

    Hi Genie,

    yes, that’s possible. Please try adding

    "aaSorting": [[0,'asc']]

    to the “Custom Commands” textfield in the “Features of the DataTables JavaScript library” section on the table’s “Edit” screen.

    Another idea: Why don’t you bring the rows into correct order after inserting the new rows? You can manually sort via drag and drop, by clicking and holding the row number on the left of each row.

    Best wishes,
    Tobias

    Thread Starter gsbohn

    (@gsbohn)

    Thanks for the quick reply.

    Exceptional advice, your first example. Works like a trooper.

    Will that stick with the next upgrade?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂

    Yes, data in the “Custom Commands” field belongs to the table data and that is always kept during an update.

    Best wishes,
    Tobias

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

The topic ‘Auto Sort on page view’ is closed to new replies.