As the Birkei Yosef explains the order of a blessing, immerse metal before glass so the blessing takes effect on a Torah mitzvah. If one forgot the blessing before the immersion, one may not recite it afterward; the vessels are nevertheless properly immersed.