Ruby: How to Sort Hash by Multi Keys


We can sort ruby hash by two keys like below.

Well, how we can sort by three keys?

So, how about make function to sort hash?