We consider a model for the evolution of surname distribution under a gender-equality measure currently being discussed by the Spanish Parliament (whereby children would adopt their mother's and father's surnames in alphabetical order). We quantify how this would bias the alphabetical distribution of surnames, and analyze its effect on the present distribution of surnames in Spain.