added sorts to generated enums