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;
    }
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;
    }
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 ; }
Sort the dataset in place by a column in the sample matrix.

@param int $index
@param bool $descending
@return self
Sort the dataset in place by a column in the sample matrix .