From: Ryan Leavengood Date: 2005-10-24T02:16:21+09:00 Subject: Re: which method do I have to override? On 10/23/05, Boris Glawe wrote: > Hello, > > I've an array filled with objects. These objects are instances of my own classes. > > Which methods do I have to override in my classes that the array's uniq, > sort,... methods can successfully compare two of my objects? > > I've tried to override the == method and the <=> method, but it didnt' work Hi Boris, For sort you just need to override <=>, for uniq to need to override hash. Regards, Ryan