Magnus Cort spurtede sig til sejr på 2. etape i Catalonien efter stærk hjælp af landsmanden Anthon Charmig.