From 4cb0a9a3e959c944daaf52f616010ee078a98a14 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 6 May 2022 08:02:16 +0200 Subject: [PATCH] Sort QSL images by last added to be on top --- application/models/Qsl_model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/models/Qsl_model.php b/application/models/Qsl_model.php index b16ea581..221d2974 100644 --- a/application/models/Qsl_model.php +++ b/application/models/Qsl_model.php @@ -9,6 +9,7 @@ class Qsl_model extends CI_Model { $this->db->from($this->config->item('table_name')); $this->db->join('qsl_images', 'qsl_images.qsoid = ' . $this->config->item('table_name') . '.col_primary_key'); $this->db->where_in('station_id', $logbooks_locations_array); + $this->db->order_by("id", "desc"); return $this->db->get(); }