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