From: Phil Date: 2007-03-13T19:05:19+09:00 Subject: Re: sorting a hash based on a attribute of teh objects which it senthil schrieb: > HI all, > I want to sort a hash based on a attribute of the objects which it > is storing.For example i am having a bean diagnosis with weightage as a > attribute.i want to sort the hash of diagnosis based on the > weightage.how to do this . > can any one explain me .. > > thanks and regards, > senthil kumar > Here is all you need: http://www.oreillynet.com/ruby/blog/2005/12/sorting_an_array_of_hashes_wit_2.html