From 42db0cdbad6dea10b05d98c512def4fe3a3eff6f Mon Sep 17 00:00:00 2001 From: Mark Sharp Date: Thu, 17 Oct 2024 09:24:10 +0100 Subject: [PATCH] Fix sortable columns --- classes/tables/solalerts_table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/tables/solalerts_table.php b/classes/tables/solalerts_table.php index 8ebeed0..4cf2656 100644 --- a/classes/tables/solalerts_table.php +++ b/classes/tables/solalerts_table.php @@ -103,8 +103,9 @@ public function __construct($uniqueid) { $this->define_columns($columns); $this->define_headers($columnheadings); $this->no_sorting('actions'); + $this->no_sorting('content'); $this->no_sorting('displayconditions'); - $this->sortable(true, 'id', SORT_DESC); + $this->sortable(true, 'lastmodified', SORT_DESC); $this->collapsible(false); $this->column_style('sortorder', 'text-align', 'center');