Ensure that types are output in the correct order.