public function orderBy(string $field, int $direction = self::ASCENDING): DocumentSelector
    {
        return $this->sortBy($this->sortBy + [$field => $direction]);
    }
public function orderBy(string $field, int $direction = self::ASCENDING): DocumentSelector
    {
        return $this->sortBy($this->sortBy + [$field => $direction]);
    }
public function orderBy ( string $ field , int $ direction = self :: ASCENDING ) : DocumentSelector { return $ this -> sortBy ( $ this -> sortBy + [ $ field => $ direction ] ) ; }
Alias for sortBy.

@param string $field
@param int    $direction

@return self|$this
Alias for sortBy .