From d59e2477302f956ead4e91e29a587ff99f2dd183 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 14 Jan 2022 11:59:04 +0100 Subject: [PATCH] Should be desc here instead of asc --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index e1fc8a3c..c3d89236 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -276,7 +276,7 @@ class Logbook_model extends CI_Model { if ($mode != 'All') { $this->db->where("(COL_MODE='" . $mode . "' OR COL_SUBMODE='" . $mode ."')"); } - $this->db->order_by("COL_TIME_ON", "asc"); + $this->db->order_by("COL_TIME_ON", "desc"); return $this->db->get($this->config->item('table_name')); }