RoutingTrieBuilder<V> comparator(Comparator<V> comparator) {
        this.comparator = comparator;
        return this;
    }
Sets a {@link Comparator} to be used to sort values.

@param comparator the comparator to sort values.
core/src/main/java/com/linecorp/armeria/server/RoutingTrieBuilder.java