From 86877ad3bb763d3e3dcb8dfdd00008250cad4de5 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Mon, 7 Oct 2024 10:10:46 +0200 Subject: [PATCH] [Advanced Logbook] Added more sorting for label print --- application/models/Labels_model.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/models/Labels_model.php b/application/models/Labels_model.php index 7f8b10d4c..ae797daf7 100644 --- a/application/models/Labels_model.php +++ b/application/models/Labels_model.php @@ -169,6 +169,12 @@ class Labels_model extends CI_Model { $this->db->where('station_profile.user_id', $this->session->userdata('user_id')); $this->db->where_in('COL_PRIMARY_KEY', $ids); $this->db->order_by("COL_DXCC", "ASC"); + $this->db->order_by("COL_CALL", "ASC"); + $this->db->order_by("COL_SAT_NAME", "ASC"); + $this->db->order_by("COL_SAT_MODE", "ASC"); + $this->db->order_by("COL_BAND_RX", "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;