From 481deabbd428f542e8a4796a576b9cf9fb8476b3 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 14 Jan 2022 11:57:15 +0100 Subject: [PATCH 1/2] Order QSO in map details by time descending --- application/models/Logbook_model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index ccc640cf..e1fc8a3c 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -276,6 +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"); return $this->db->get($this->config->item('table_name')); } From d59e2477302f956ead4e91e29a587ff99f2dd183 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 14 Jan 2022 11:59:04 +0100 Subject: [PATCH 2/2] 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')); }