sort pubkeys in multisig scripts