/**
  * @return OqlOrderByClause
  **/
 public static function orderBy($clause)
 {
     return OqlOrderByParser::create()->parse($clause);
 }
 private function orderByState()
 {
     if ($this->checkKeyword($this->tokenizer->peek(), 'order by')) {
         $this->tokenizer->next();
         $this->oqlObject->addOrderBy(OqlOrderByParser::create()->setTokenizer($this->tokenizer)->parse());
     }
     return self::HAVING_STATE;
 }