> to understand this, you can think of "sort" taking a function as a 
> parameter.  and sort() will pass 2 numbers to this function, and 
> rearragne the elements according to the return value of -1, 0, or 1.
> 
> that's it.  to understand it fully, you can read about "iterators" in 
> Ruby.  where you can take a block as a function, and "yield" arguments 
> to this function, and get back a return value.

I understand sorting and sorting algorithms - I was tripped up by the 
function as a parameter thing. Thanks!




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