vertx / io.vertx.core.cli / UsageMessageFormatter / setOptionComparator

# setOptionComparator

`open fun setOptionComparator(comparator: Comparator<Option>): Unit`

Set the comparator used to sort the options when they output in help text. Passing in a null comparator will keep the options in the order they were declared.

### Parameters

`comparator` - the Comparator to use for sorting the options