applying multiple order by in codeigniter

Solutions on MaxInterview for applying multiple order by in codeigniter by the best coders in the world

showing results for - "applying multiple order by in codeigniter"
Maimouna
22 Aug 2020
1$this->db->from($this->table_name);
2$this->db->order_by("column1 asc,column2 desc");
3$query = $this->db->get(); 
4return $query->result();