From: Stefan Rusterholz Date: 2007-08-27T03:12:08+09:00 Subject: Re: sort_by { rand } not working botp wrote: > On 8/26/07, Ken Bloom wrote: >> Whoops. As soon as I posted, I noticed that there is no sort_by!. > > try > > sort!{rand} > > > kind regards -botp That's equivalent to sort! { 1 } and rather predictable (sort/sort! expects -1, 0 or 1 as value, rand is 0..1) and hence IMHO pointless. Regards Stefan -- Posted via http://www.ruby-forum.com/.