A photon with shorter wavelenght have more energy.
The material can absorb one photon by some unit of time. This means that i can blast 1000 photons and just one is abosorbed. So, a shorter wavelenght is better.
But this is not perfect, it need to be a good collision, then, sometimes more...