From 658f59646a5e38f44d47a47770bca965aa001cbe Mon Sep 17 00:00:00 2001 From: Hugo Silva Date: Sun, 8 Sep 2024 12:20:35 +0100 Subject: [PATCH] Return the station list sorted by call and name --- application/models/Stations.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/models/Stations.php b/application/models/Stations.php index 4c78ec37..c02c067e 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -30,6 +30,8 @@ class Stations extends CI_Model { $this->db->select('station_profile.*, dxcc_entities.name as station_country, dxcc_entities.end as dxcc_end'); $this->db->where('user_id', $userid); $this->db->join('dxcc_entities','station_profile.station_dxcc = dxcc_entities.adif','left outer'); + $this->db->order_by('station_profile.station_callsign'); + $this->db->order_by('station_profile.station_profile_name'); return $this->db->get('station_profile'); }