Sort members by protection and fix enum naming convention.