Viewing 1 replies (of 1 total)
  • Hi,

    yes, you could either perform an initial sort on the “Edit” screen of the table (so that the table will already be loaded in the sorted state that you want), or you can make the DataTables library sort the table immediately when it is loaded, by adding a “Custom Command” in the “DataTables JavaScript Features” section, like

    "aoColumnDefs": [ { "asSorting": [ "desc" ], "aTargets": [ 3 ] } ]

    (This would sort the table for column 4 (because of zero-based indexing), in descending order.)

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘WP Table Reloaded – Default Sort’ is closed to new replies.