martypitt/swagger-springmvc — pull request #543 by gwallet (2014-12-30 14:40:44+00:00)
Title: Sort model properties

Hi,

Given a ReSTful Webservices API written in Java using Spring MVC and documented with Swagger and Swagger-SpringMVC,
As a consumer of that ReST API,
When I'm using Swagger-UI to know how the API works and what are the data structure involved,
I find hard to look at model's properties that are neither alphabetically sorted nor in same order as written in Java class source file.

For human documentation purpose, what do you think about keeping an order to the model properties ?
It was hard to me to keep the same order as written by the model's authors but here is a tiny contribution to always alphabetically sort model's properties.

Best regards,
Guillaume Wallet