• Resolved golferdude99

    (@golferdude99)


    Hello:

    Just updated the plugin to the latest and now my table does not auto sort to the newest on a date column.

    This was working previously.

    It seems to sort by text (month name) vs latest date.

    WP 4.74
    TablePress 1.8
    TablePress Extension: DataTables Sorting plugins 1.0

    See the table here:
    https://goo.gl/zjoO6s

    Any help much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I’m not sure why this happens, to be honest. We might have to set the cell type in that column to date, explicitly.
    For that, please add this to the “Custom Commands” text field on the “Edit” screen of this table:

    "columnDefs": [ { "type": "date", "targets": [ 3 ] } ]
    

    Regards,
    Tobias

    Thread Starter golferdude99

    (@golferdude99)

    Thanks Tobias for the fix.

    Works great now.

    Much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sort by data newest first’ is closed to new replies.