X-ray fluorescence guns are used to reliably sort metals.