From 348342d752def427de1a32a9ee9bd455099777fd Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Fri, 27 Jan 2023 13:14:23 +0000 Subject: [PATCH] [Dashboard] Fixes QSOs being out of order --- application/models/Logbook_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 29d14efb..6c7aa411 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -1184,7 +1184,8 @@ class Logbook_model extends CI_Model { limit " . $num . ") hrd JOIN station_profile ON station_profile.station_id = hrd.station_id - LEFT JOIN dxcc_entities ON hrd.col_dxcc = dxcc_entities.adif"; + LEFT JOIN dxcc_entities ON hrd.col_dxcc = dxcc_entities.adif + order by col_time_on desc, col_primary_key desc"; $query = $this->db->query($sql);