From: Todd Benson Date: 2008-03-29T14:33:02+09:00 Subject: Re: Help on best way to gather/sort results [Array/Hash]? On Sat, Mar 29, 2008 at 12:02 AM, Tony De wrote: > Greetings ruby fans, > > I'm a greenhorn at this cool lang ruby. Much to learn. Perhaps you > chaps could help me with an issue I have. I've read through a number of > the post on sorting Arrays and Hashes. And yet I can't seem to put my > finger on the solution. I want to sort on the second column. So it > seemed from what information I gathered, that I need to gather my > results into a hash. Am I on the right track? Oh, let me tell you what > your looking at here; I am scanning each mail file in our queue for > commonalites (spammer) instead of the useless (my opinoin) qmHandle we > have for qmail. So, I've got a working prototype. If you could help me > on my sort and if you have any other comments/suggestions to throw my > way I'm sure I could learn a thing or two. Being new to ruby, there's a > lot of new ideas here. Thank guys. > Being a little lazy at the moment to go through the code, have you looked at #sort_by{}? Todd