I am curious if it is possible to sort diefferent types such as fields, methods, etc., but not alphabetically . I know that I can sort the participants using Source -> Cleanup . But he continues to sort it also in alphabetical order. I just want to sort by visibility and save the rest of the old order.
Example:
public class Person { private Person(final Long id, final String name, final String surname) { } public Person() { } private Long id; private String surname; private String name; public final static String SOME_CONSTANT = "SOME_CONSTANT"; }
After sorting it should look like this:
public class Person { public final static String SOME_CONSTANT = "SOME_CONSTANT"; private Long id; private String surname; private String name; public Person() { } private Person(final Long id, final String name, final String surname) { } }
But I get:
public class Person { public final static String SOME_CONSTANT = "SOME_CONSTANT"; private Long id; private String name; private String surname; public Person() { } private Person(final Long id, final String name, final String surname) { } }
source share