From: "Mark J. Reed" Date: 2003-09-17T06:32:24+09:00 Subject: Re: scrambler one-liner On Wed, Sep 17, 2003 at 04:26:01AM +0900, Kurt M. Dresner wrote: > I don't /think/ it works with sort. Someone correct me if I'm wrong, > but the block passed to sort has to return either a -1, 0, or 1, and I > think it needs to be consistent between two items (at least it should > be). Right, right. That occurred to me after I sent that message. For some reason I was thinking that sort and sort_by were the same method with two aliases, the longer one intended for use when passing a block. Obviously the blocks really do different things - the sort_by block converts each item into a key to be compared, while the sort block performs the actual comparisons. Just ignore me. :) -Mark