public Swagger2MarkupConfigBuilder withResponseOrdering ( Comparator < String > responseOrdering ) { Validate . notNull ( responseOrdering , "%s must not be null" , "responseOrdering" ) ; config . responseOrderBy = OrderBy . CUSTOM ; config . responseOrdering = responseOrdering ; return this ; }
Specifies a custom comparator function to order responses .