Added function to sort public keys by lexicographic order
Added example for ordering multisig keys