public addOrderBy ( string $sort, string $order = 'ASC' ) | ||
$sort | string | Sort expression |
$order | string | Sort direction (ASC or DESC) |
public function addOrderBy($sort, $order = 'ASC')
{
$order = strtoupper($order);
return $this->addQueryPart('orderBy', $sort . ' ' . ('ASC' == $order ? 'ASC' : 'DESC'), true);
}