order($field, $orderType = "ASC", $override = false)

It will order your results based on given params
@param String $field
@param String $orderType
@param Boolean $override
@return PhpBURN_Core


Wich will order the results, usualy a field but can be anything that your database accepts, ex: $model->order(‘id_user’) or $model->order(‘COUNT(id_user)’), etc.

$field (optional)
By default it comes as “DESC” but you can change to “ASC” anytime you fill this option.


It will help you to order or results putting a ORDER BY mclause in your query.

Default Usage

$user = new Users();


That will bring yours users ORDER BY id_user DESC

ASC order example

Default Usage

$user = new Users();