public function orderBy($void = null)
    {
        $this->ensureNoArguments(__METHOD__, $void);

        return $this->setChild(new OrderBy($this));
    }
public function orderBy($void = null)
    {
        $this->ensureNoArguments(__METHOD__, $void);

        return $this->setChild(new OrderBy($this));
    }
public function orderBy ( $ void = null ) { $ this -> ensureNoArguments ( __METHOD__ , $ void ) ; return $ this -> setChild ( new OrderBy ( $ this ) ) ; }
Add orderings to the builder tree.

Number of orderings is unbounded::

<code>
$qb->orderBy()
->asc()->field('a.prop_1')->end()
->desc()->field('a.prop_2')->end()
->end();
</code>

@factoryMethod OrderBy

@return OrderBy
Add orderings to the builder tree .