I believe it's about the dislodging response as Ag structures solvent salt with nitrate. For dislodging response, more receptive metal will uproot less receptive metal from the arrangement. In your question, the reactivity of the metal are positioned as takes after: Mg > Cu > Ag. Take note of that more responsive metals, that are Mg and Cu, are in the arrangement.