From: Vladimir Sizikov Date: 2008-07-10T16:44:33+09:00 Subject: [ruby-core:17720] [Ruby 1.8 - Bug #252] Array#sort doesn't respect overridden <=> Issue #252 has been updated by Vladimir Sizikov. This seems to be a common performance trick in MRI, esp. for Fixnums and Strings. Looking at array.c (sort_2), indeed Fixnums and Strings are special-cased. I also checked JRuby, and JRuby follows what MRI does (and this does improve performance for Fixnum and String arrays). ---------------------------------------- http://redmine.ruby-lang.org/issues/show/252 ---------------------------------------- http://redmine.ruby-lang.org