def compareTo(self, other):
        if self.dayOfWeek < other.dayOfWeek:
            return -1
        elif self.dayOfWeek > other.dayOfWeek:
            return 1
        else:
            if self.startMinutes < other.startMinutes:
                return -1
            elif self.startMinutes > other.startMinutes:
                return 1
        return 0
dataset/ETHPy150Open anandology/pyjamas/examples/dynamictable/TimeSlot.py/TimeSlot.compareTo/original