Adding function for sorting PayMulSig keys