I'm looking for a way to sort the methods in a class in the same way as they are ordered in the interface they are overriding.
It's a class only implementing methods from one interface so they shouldn't be any problems.
I found the basic sorting functionality from Eclipse, but, as far as I found out, it can only sort with respect to the method type and the method name.
Any ideas? Eclipse plugins?
Thanks!
If you can modify the interface source also, use Source->Sort members on both the interface and the class. Afterwards they have the same order of methods.
I'm still wondering what you are trying to reach by sorting the code, as I see no necessity for that, because
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With