public function sort(callable $comparator = null) : Collection
    {
        return $this->pipe(
            function (array $value) use ($comparator) : array {
                $comparator !== null
                    ? usort($value, $comparator)
                    : sort($value);

                return $value;
            }
        );
    }