The advent of guns meant the end of the sword.
A gun is easier to conceal, required less skill in its application and allowed the user to fire a devastating round without stepping too close to the target.
Different types of guns offer a wide range of shooting options.
As a weapon it is infinitely more versatile than a sword.