From d37b9c4438eb0e26c88f53558c211bf753a4fd0d Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Wed, 4 Jan 2023 13:47:59 +0100 Subject: [PATCH] [QSO Stats Year] Changed year sort to desc --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index b585d7c8..5f7decf7 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -1256,7 +1256,7 @@ class Logbook_model extends CI_Model { $this->db->select('DATE_FORMAT(COL_TIME_ON, \'%Y\') as \'year\',COUNT(COL_PRIMARY_KEY) as \'total\'', FALSE); $this->db->where_in('station_id', $logbooks_locations_array); $this->db->group_by('DATE_FORMAT(COL_TIME_ON, \'%Y\')'); - $this->db->order_by('year', 'ASC'); + $this->db->order_by('year', 'DESC'); $query = $this->db->get($this->config->item('table_name'));