From: "David A. Black" Date: 2005-03-28T11:59:49+09:00 Subject: Re: ! haphazard 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