query builder select order by sample in codeigniter code example
Example: codeigniter query builder order by
$this->db->order_by('title', 'DESC');
// Produces: ORDER BY `title` DESC
$this->db->order_by('title', 'DESC');
// Produces: ORDER BY `title` DESC