Bluz\Db\Query\Traits\Order::orderBy PHP Method

orderBy() public method

Specifies an ordering for the query results Replaces any previously specified orderings, if any
public orderBy ( string $sort, string $order = 'ASC' )
$sort string Sort expression
$order string Sort direction (ASC or DESC)
    public function orderBy($sort, $order = 'ASC')
    {
        $order = strtoupper($order);
        return $this->addQueryPart('orderBy', $sort . ' ' . ('ASC' == $order ? 'ASC' : 'DESC'), false);
    }