How to add an ORDER BY clause using CodeIgniter query builder
public function mandarin_2($limit = '', $offset = '')
{
$data['aktivisdcm1'] = $this->db
->get_where('tb_imam', array('status' => 'Aktivis'))
->result_array();
$data['title'] = 'Absensi Mandarin 2';
$this->load->view('absensi/mandarin_2', $data);
$this->load->view('templates/header');
// $this->load->view('templates/footer');
}
How do I make an order by clause with my coding?