Question : applying multiple order by in codeigniter
Answered by : lokesh-ramchandani-in6l3jq294i2
$this->db->from($this->table_name);
$this->db->order_by("column1 asc,column2 desc");
$query = $this->db->get();
return $query->result();
Source : | Last Update : Tue, 01 Dec 20