From 1fd891f0c4c21012611b3495b1281c80da4b6f21 Mon Sep 17 00:00:00 2001 From: Ryan Zink Date: Mon, 8 Feb 2021 22:56:16 -0700 Subject: [PATCH] Update satellite distances worked combo box to sort by satellite name --- application/models/Distances_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Distances_model.php b/application/models/Distances_model.php index 575e8399..2fc2ea25 100644 --- a/application/models/Distances_model.php +++ b/application/models/Distances_model.php @@ -36,7 +36,7 @@ class Distances_model extends CI_Model $station_id = $CI->Stations->find_active(); // get all worked sats from database - $sql = "SELECT distinct col_sat_name FROM ".$this->config->item('table_name')." WHERE station_id = ".$station_id . " and coalesce(col_sat_name, '') <> ''"; + $sql = "SELECT distinct col_sat_name FROM ".$this->config->item('table_name')." WHERE station_id = ".$station_id . " and coalesce(col_sat_name, '') <> '' ORDER BY col_sat_name"; $data = $this->db->query($sql);