From: Tanaka Akira Date: 2003-05-19T14:14:56+09:00 Subject: Re: ruby-dev summary #20159-20200 In article <8765o7czqc.fsf@serein.a02.aist.go.jp>, Tanaka Akira writes: > [1,"1"].sort_by {|v| [v.class.name, v] } Oops. It shouldn't work because Module is not totally ordered. (But I found a problem with Module comparison and reported it now.) So, [1,"1"].sort_by {|v| b.object_id } is better. When the ordering is not interesting (e.g. for binary search), object_id is useful enough. -- Tanaka Akira