Afficher un message
Vieux 29/03/2008, 07h33   #2
Todd Benson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: on best way to gather/sort results [Array/Hash]?

On Sat, Mar 29, 2008 at 12:02 AM, Tony De <tonydema@gmail.com> wrote:
> Greetings ruby fans,
>
> I'm a greenhorn at this cool lang ruby. Much to learn. Perhaps you
> chaps could 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 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

  Réponse avec citation
 
Page generated in 0,04615 seconds with 9 queries