On Sun, Dec 20, 2009 at 4:44 AM, Benoit Daloze <eregontp / gmail.com> wrote: > +1. That seems quite not logical, sure. But the only asset of having > Comparable is to add these methods: < <= => > and between? > > So, that's probably rarely useful. Well, I discovered Array *didn't* include Comparable when I tried doing if [line1, col1] < [line2, col2] which I expected to just work. > Another reason is, maybe, the first thing, is that an Array is Enumerable. > Then adding Comparable could look a little weared for newbies. But I think > that is not very relevant. Sorting on multiple keys by using sort_by and Array#<=> is one of the standard ruby idioms. This is just as natural. martin