From: Joel VanderWerf Date: 2002-11-18T03:57:45+09:00 Subject: Re: sorting partially ordered objects in 1.7.3 fails ts wrote:... Thanks. I thought sort had changed, but of course it is Class#<=>. So an easy way to do a "tolerant" class sort compatibly with all known rubies is: [C1,C,C2].sort {|c,d| c<=>d || 1} # ==> [C2, C1, C]