sort nodes by country code in output