public function sortByColumn(int $index, bool $descending = false)
    {
        $order = $this->column($index);

        array_multisort(
            $order,
            $this->samples,
            $this->labels,
            $descending ? SORT_DESC : SORT_ASC
        );

        return $this;
    }