From: mortee Date: 2007-10-15T22:57:32+09:00 Subject: Re: "reversing" a Time SpringFlowers AutumnMoon wrote: > if the time is just the UNIX time can't you negate it too? can use > to_f first. Daniel Sheppard wrote: > For your special case of using time as a sort key, just convert the time > to an integer Yeah, this is what I was looking for. > how about just use sort {|x, y| [y.name, x.time] <=> [x.name, y.time] } > so now the name is "negated". ... and this is right what I wanted to avoid. mortee