public function sort($by, $direction = "asc", $override = false) {
        $this->assertInitiated("sort");
        if ($override) {
            $this->query['sort'] = [];
        }
        $this->query['sort'][] = [$by => $direction];
        return $this;
    }