views:

362

answers:

2

Is there an easy way to sort methods within a class in Eclipse?

+1  A: 

Found it on the Eclipse newsgroup:

select the class, Source > Sort Members

Carl Manaster
+4  A: 

select the class, Source > Sort Members

you can set the order in Java preferences

via

marcgg
Sometimes this gives compilation error.Say if one variable is instantiated based on the other and it on sort the variable goes above.I was wondering if this can be handled in any way
Ravisha