From df25d8c1ae461cf3d40465414afc89caf4c22721 Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 28 Jul 2023 08:21:37 +0000 Subject: [PATCH] Enhance sorting --- application/models/Labels_model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/models/Labels_model.php b/application/models/Labels_model.php index c0c50494..0ec5d08a 100644 --- a/application/models/Labels_model.php +++ b/application/models/Labels_model.php @@ -123,6 +123,9 @@ class Labels_model extends CI_Model { $this->db->where('station_profile.user_id', $this->session->userdata('user_id')); $this->db->where_in('COL_QSL_SENT', array('R', 'Q')); $this->db->order_by("COL_DXCC", "ASC"); + $this->db->order_by("COL_CALL", "ASC"); + $this->db->order_by("COL_TIME_ON", "ASC"); + $this->db->order_by("COL_MODE", "ASC"); $query = $this->db->get($this->config->item('table_name')); return $query; @@ -139,4 +142,4 @@ class Labels_model extends CI_Model { return $query; } -} \ No newline at end of file +}