sort signatures for multisig