>>>>> "A" == =?iso-8859-1?Q?Aleksi Niemel=E4?= <iso-8859-1> writes:

A> Hash#sort could have calling form with block.

 I've not understood this :

pigeon% cat b.rb
#!/usr/bin/ruby
a = {1 => 2, 3 => 4}
b = a.sort {|x| x[1][0] <=> x[0][0] }
p b
pigeon% b.rb
[[3, 4], [1, 2]]
pigeon% 


Guy Decoux