Sort values in enums and add a ; to field values in Closure