Afficher un message
Vieux 29/03/2008, 07h49   #4
Tony De
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: on best way to gather/sort results ?

Tony De wrote:
> Todd Benson wrote:
>> On Sat, Mar 29, 2008 at 12:02 AM, Tony De <tonydema@gmail.com> wrote:
>>> 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

>
> I believe I ran across it but I recall it blew up when I worked with it.
> Likely an issue with my as the unskilled ruby coder than the method
> itself. I'll take another look. Thanks
>
> tonyd


Ok, tried this @results.sort_by { |a| a[1] } - thinking that I want to
sort on the second element in my array "Source". No sort was performed
at all. Scratching my head..

tonyd
--
Posted via http://www.ruby-forum.com/.

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