Add Sort Members functionality to Eclipse formatter by arouel · Pull Request #2312 · diffplug/spotless
Why
We not only want to format our code with Eclipse JDT, but also sort the members as we know it from Eclipse IDE. This ensures that the methods are always in sorted order and thus may help for better readability. It is turned off by default, but you might want to consider enabling it when setting coding standards for a project. There are two options to enable/disable it on project level or on file level.