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