From: Jim Weirich Date: 2005-12-13T21:36:26+09:00 Subject: Re: stable sort_by? Frederick Ros wrote: > Hummm not sure to understand ... You asked for a sort on the first item > ... So, in this case [1,"c"] and [1,"b"] are equivalent, and their order > is un-important ... A stable sort will leave items in the original order if their keys are equal. Since sort_by apparently is _not_ a stable sort, the secondary keys must be included as you suggested. -- Posted via http://www.ruby-forum.com/.