Skip to content

Commit

Permalink
Return the station list sorted by call and name
Browse files Browse the repository at this point in the history
  • Loading branch information
hugosilvaparagramanet committed Sep 8, 2024
1 parent 727939d commit 658f596
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/models/Stations.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ function all_of_user($userid = null) {
$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');
}

Expand Down

0 comments on commit 658f596

Please sign in to comment.