[issue27755] fix schema for scala enums being in the wrong order