So there is a scene in my novel, one of my characters is on a cliff and he is holding a rope, so his friend can climb up. Suddenly the character is attacked by bandits and has to let go of the rope. Would it be realistic if he tied the rope to the sword's handle and stuck the sword into the ground? Could the sword hold his friend? If not maybe there is another way to prevent his friend from falling?
P. S. The story takes place in medieval times