From: jazzez ravi Date: 2008-08-12T19:28:30+09:00 Subject: Re: Need sort help Hi Stefano, > a.sort_by{|i| i[1]} > > Array#sort_by calls the block for each element of the array, and uses > the > return value as a key to use in sorting. > > I hope this helps > > Stefano Thanks for quick and best reply.. Regards, P.Raveendran RF,Chennai http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/.