Make sure we preserve ordering of batch sections (otherwise inheritance
chains break).