[eluser]xwero[/eluser]
The sql statement building methods have to come before the action method; get, update, insert, ...
Most sql statement building methods have no return.
If you want to build the query in the order of the sql statement than you have to write
Code:
$this->db->from('modules');
$this->db->order_by("sort", "asc");
$query = $this->db->get();