Is it possible conditional sort in hash
my hash like {1=>"10",2=>"20",3=>"30",4=>"40",5=>"50",6=>"60",7=>"70",8=>"80",9=>"90"}
wanted result is
{7=>"70",8=>"80",9=>"90",1=>"10",2=>"20",3=>"30",4=>"40",5=>"50",6=>"60"}
add condition in this code
operation_hour_hash.sort{|key,value| key[1]<=>value[1]}