Ordre de codeigniter par
$this->db->from($this->table_name);
$this->db->order_by("name", "asc");
$query = $this->db->get();
return $query->result();
Terrible Tapir
$this->db->from($this->table_name);
$this->db->order_by("name", "asc");
$query = $this->db->get();
return $query->result();
$this->db->order_by("UPPER(course_name)","desc");
$query = $this->db->order_by('birth_date', 'ASC')->get_where($this->tbl_name, $where);