public function orderBy($field, $direction = self::ASCENDING) {
        $this->orderBy = [$field, $direction];
        return $this;
    }
public function orderBy($field, $direction = self::ASCENDING) {
        $this->orderBy = [$field, $direction];
        return $this;
    }
public function orderBy ( $ field , $ direction = self :: ASCENDING ) { $ this -> orderBy = [ $ field , $ direction ] ; return $ this ; }
Changes how the results are ordered.
@param string $field
@return self
Changes how the results are ordered .