From 9e214a0819b6db5e0a738b4f24c2db91088c08ff Mon Sep 17 00:00:00 2001 From: phl0 Date: Tue, 17 Sep 2024 18:23:49 +0200 Subject: [PATCH] Order LoTW certs by callsign --- application/models/Lotw_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Lotw_model.php b/application/models/Lotw_model.php index 695edde9f..93f91be86 100644 --- a/application/models/Lotw_model.php +++ b/application/models/Lotw_model.php @@ -15,7 +15,7 @@ class Lotw_model extends CI_Model { $this->db->select('lotw_certs.lotw_cert_id as lotw_cert_id, lotw_certs.callsign as callsign, dxcc_entities.name as cert_dxcc, dxcc_entities.end as cert_dxcc_end, lotw_certs.qso_start_date as qso_start_date, lotw_certs.qso_end_date as qso_end_date, lotw_certs.date_created as date_created, lotw_certs.date_expires as date_expires, lotw_certs.last_upload as last_upload, lotw_certs.last_upload_fail as last_upload_fail, lotw_certs.last_upload_status as last_upload_status'); $this->db->where('user_id', $user_id); $this->db->join('dxcc_entities','lotw_certs.cert_dxcc_id = dxcc_entities.adif','left'); - $this->db->order_by('cert_dxcc', 'ASC'); + $this->db->order_by('callsign', 'ASC'); $query = $this->db->get('lotw_certs'); return $query;