h.sort
h.sort_by {|k,v| v}
Note both forms return an array of key-value pairs (i.e., an array of arrays).