Question : order by in ci
Answered by : yawning-yak-6sm8jwtp7tcg
$this->db->from($this->table_name);
$this->db->order_by("name", "asc");
$query = $this->db->get();
return $query->result();
Source : https://stackoverflow.com/questions/5320395/how-to-add-an-order-by-clause-using-codeigniters-active-record-methods | Last Update : Sat, 30 Jan 21