0
Q:

is there a way of changing the key of a hash

hash.to_a.transpose.map(&:sort).transpose.to_h
1

New to Communities?

Join the community