Sort data results for graphing

This commit is contained in:
phl0
2024-11-23 12:57:26 +01:00
parent ddc8f56361
commit 2e2dff391a

View File

@@ -720,7 +720,8 @@
$sql = "SELECT count(*) qsos, round(COL_ANT_EL) elevation FROM ".$this->config->item('table_name')." where station_id in (" . implode(',',$logbooks_locations_array) . ") and coalesce(col_ant_el, '') <> ''
$where
group by round(col_ant_el)";
group by round(col_ant_el)
order by elevation asc";
$result = $this->db->query($sql, $binding);
return $result->result();
@@ -771,7 +772,8 @@
where station_id in (" . implode(',',$logbooks_locations_array) . ")
and coalesce(col_ant_az, '') <> ''
$where
group by round(col_ant_az)";
group by round(col_ant_az)
order by azimuth asc";
$result = $this->db->query($sql, $binding);
return $result->result();