Re-order parameters, only lua >= 5.2 supported validation.