Hold Sway

Does anybody know the derivation of the expression 'hold sway'? It is presumably nautical but I have been unable to find a source.

Replies