public function orderBy(
        string $cypher,
        string $direction = 'ASC'
    ): self {
        $direction = \strtolower($direction);

        $query = new self;
        $query->clauses = $this->clauses->add(
            Clause\OrderByClause::$direction($cypher)
        );

        return $query;
    }
public function orderBy(
        string $cypher,
        string $direction = 'ASC'
    ): self {
        $direction = \strtolower($direction);

        $query = new self;
        $query->clauses = $this->clauses->add(
            Clause\OrderByClause::$direction($cypher)
        );

        return $query;
    }
public function orderBy ( string $ cypher , string $ direction = 'ASC' ) : self { $ direction = \ strtolower ( $ direction ) ; $ query = new self ; $ query -> clauses = $ this -> clauses -> add ( Clause \ OrderByClause :: $ direction ( $ cypher ) ) ; return $ query ; }
Add a ORDER BY clause

@param string $cypher
@param string $direction

@return self
Add a ORDER BY clause