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