/** * SortClauseField ::= DocumentFieldName "ASC | DESC" */ public function SortClauseField(Query $query) { $fieldName = $this->DocumentFieldName(); $this->match(Lexer::T_IDENTIFIER); $order = $this->_lexer->token['value']; $query->sort($fieldName, $order); }