def __cmp__( self, other ):
        """
        Returns the comparison of this item with the other.
        
        :param      other | <variant>
        
        :return     -1 | 0 | 1
        """
        if ( not isinstance(other, XCalendarItem) ):
            return -1
        
        out = cmp(self.dateStart(), other.dateStart())
        if ( not out ):
            out = cmp(other.dateEnd(), self.dateEnd())
            if ( not out ):
                out = cmp(self.timeStart(), other.timeStart())
                if ( not out ):
                    out = cmp(other.timeEnd(), self.timeEnd())
                    if ( not out ):
                        out = cmp(self.title(), other.title())
        return out
def __cmp__ ( self , other ) : if ( not isinstance ( other , XCalendarItem ) ) : return - 1 out = cmp ( self . dateStart ( ) , other . dateStart ( ) ) if ( not out ) : out = cmp ( other . dateEnd ( ) , self . dateEnd ( ) ) if ( not out ) : out = cmp ( self . timeStart ( ) , other . timeStart ( ) ) if ( not out ) : out = cmp ( other . timeEnd ( ) , self . timeEnd ( ) ) if ( not out ) : out = cmp ( self . title ( ) , other . title ( ) ) return out
Returns the comparison of this item with the other.
        
        :param      other | <variant>
        
        :return     -1 | 0 | 1