Hi --

On Mon, 28 Mar 2005, Glenn Parker wrote:

> David A. Black wrote:
>> You can always define your own:
>> 
>>   class Array
>>     def sort_by!(&b)
>>       replace(sort_by &b)
>>     end
>>   end
>
> No, first you have to test whether or not sort_by actually changed the order 
> of items in the Array, if not then you must return nil.  ;)

Hey, it's my ! method; it can do whatever I want :-)


David

-- 
David A. Black
dblack / wobblini.net