Hi botp,

On 19/01/12 17:53, botp wrote:
> On Thu, Jan 19, 2012 at 8:58 AM, Garthy D
> <garthy_lmkltybr / entropicsoftware.com>  wrote:
>> easier to write and clearer to read.
>> Garth
>>
>
> try,
>
> foo.sort{|a,b|
>   ((rv=a.key0<=>b.key0)==0)&&
>   ((rv=b.key1<=>a.key1)==0)&&
>   (rv=a.magic(b))
>   rv
> end
>
> kind regards -botp

Very nice use of short-circuiting. :) It made me think of Bourne shell 
scripting. :)

Garth