Florian Frank <flori / nixe.ping.de> wrote:
> 
>    def <=>(other)
>        (self.freq <=> other.freq).nonzero? || other.time <=> self.time 
>    end

Shouldn't that be

def <=>(other)
  a = (self.freq <=> other.freq)
  a.nonzero? ? a : (other.time <=> self.time)
end

since calling nonzero? collapses [-1,1] to 'true'.

martin