From: Brian Adkins Date: 2007-11-01T11:55:12+09:00 Subject: Re: Sorting a string... On Oct 31, 7:26 pm, "David A. Black" wrote: > On Thu, 1 Nov 2007, Daniel Waite wrote: > > class String > > def sort > > end > > end > > I wouldn't overwrite a core method like that; you could end up with > some very unexpected results. It's better to give it a different name. # splort for split sort ;) def splort s s.split('').sort!.join('') end