Hash#sort † とりあえず、ri Hash#sortすると少し解説有り。 -------------------------------------------------------------- Hash#sort hsh.sort => array hsh.sort {| a, b | block } => array From Ruby 1.8 ------------------------------------------------------------------------ Converts _hsh_ to a nested array of +[+ _key, value_ +]+ arrays and sorts it, using +Array#sort+. h = { "a" => 20, "b" => 30, "c" => 10 } h.sort