code: public Swagger2MarkupConfigBuilder withParameterOrdering(Comparator<Parameter> parameterOrdering) {
          Validate.notNull(parameterOrdering, "%s must not be null", "parameterOrdering");
  
          config.parameterOrderBy = OrderBy.CUSTOM;
          config.parameterOrdering = parameterOrdering;
          return this;
      }
docs: Specifies a custom comparator function to order parameters.
  
  @param parameterOrdering parameter ordering
  @return this builder