final public function replaceSort($columnName, $ascending = true)
    {
        if (!is_array($columnName)) {
            $sorts = [$columnName => $ascending];
        } else {
            $sorts = $columnName;
        }

        $this->sorts = [];

        foreach ($sorts as $index => $value) {
            $this->addSort($index, $value);
        }

        return $this;
    }