From b17b69ad1775ce45c29bc390a520a0a62402589d Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 2 Jan 2023 14:19:14 +0100 Subject: [PATCH] Sort QSOs for QSLprint DESC as in other places --- application/models/Qslprint_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Qslprint_model.php b/application/models/Qslprint_model.php index f73ba0c6..98c6e41d 100644 --- a/application/models/Qslprint_model.php +++ b/application/models/Qslprint_model.php @@ -53,7 +53,7 @@ class Qslprint_model extends CI_Model { // always filter user. this ensures that even if the station_id is from another user no inaccesible QSOs will be returned $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_TIME_ON", "ASC"); + $this->db->order_by("COL_TIME_ON", "DESC"); $query = $this->db->get($this->config->item('table_name')); return $query; @@ -107,7 +107,7 @@ class Qslprint_model extends CI_Model { $this->db->where('station_profile.user_id', $this->session->userdata('user_id')); $this->db->where('COL_CALL like "%'.$callsign.'%"'); $this->db->where('coalesce(COL_QSL_SENT, "") not in ("R", "Q")'); - $this->db->order_by("COL_TIME_ON", "ASC"); + $this->db->order_by("COL_TIME_ON", "DESC"); $query = $this->db->get($this->config->item('table_name')); return $query;