$query = ('SELECT tb_imam.*, tb_bidang.bidang FROM tb_imam JOIN tb_bidang ON tb_imam.bidang_id = tb_bidang.id WHERE tb_imam.status = "Pengerja" '); return $this->db->query($query)->result_array(); How do I add an order by using my code like this? beg for your help, thank you
$query = ('SELECT tb_imam.*, tb_bidang.bidang FROM tb_imam JOIN tb_bidang ON tb_imam.bidang_id = tb_bidang.id WHERE tb_imam.status = "Pengerja" ORDER BY something ');