From: Ryan Davis Date: 2008-07-10T10:34:05+09:00 Subject: [ruby-core:17715] Re: [Ruby 1.8 - Bug #252] (Open) Array#sort doesn't respect overridden <=> On Jul 9, 2008, at 17:27 , Dave Thomas wrote: > > On Jul 9, 2008, at 6:00 PM, Ryan Davis wrote: > >> junk = %w[these words should be sorted in the order of their length] >> puts junk.sort >> >> MRI (1.8, 1.9) does not respect new behavior of <=>. >> >> Bug or feature? > > > I seem to remember this from a while back--I seem to remember that > String is special-cased for performance. and that's cool... but I'd like an "official" weigh in describing it as either specification or implementation detail. ATM, I don't think rubinius would see a performance loss if it respected the overridden <=> method.