Hello.
On 7/10/07, John Carter <john.carter / tait.co.nz> wrote:
> count.keys.sort_by{|key| count[key]}
IMHO, the most elegant way to do this is:
hash.sort_by { |k, v| v }.map { |k, v| k }
...where k = key and v = value.
Cheers,
--
Christoffer Sawicki
http://vemod.net/