Making sortmultisigkeys function static