Problems in sorting the hash


#1

frequencies = { " dfg " => 1 , "gdfg" => 2, "gbv" => 3 }
frequencies = frequencies.sort_by { |frequency , count|
count
}
frequencies.reverse

This is my code and i get this error " you havent set the hash frequency correctly "
Please someone help me out here!


#2

You forgot the "!" exclamation mark after the reverse.