Members of class have to be ordered in next sequence:
 1. Internal types (Classes, enums, interfaces)
 2. Constant (static final)
 3. Static fields
 4. Non static fields
 5. Static methods
 5. Constructors
 6. Non static methods (methods of activity lifecycle like onCreate(), onResume() etc have to go first).

In each category items have to be ordered from public to private.