def __lt__(self, other):
        """ Used for custom sort on note's timestamp
        :param other: NoteListWidgetItem to compare against
        :return: boolean True if should be sorted below
        """
        if other.notemodel.pinned and self.notemodel.pinned:
            return self.notemodel.timestamp < other.notemodel.timestamp
        elif not other.notemodel.pinned and not self.notemodel.pinned:
            return self.notemodel.timestamp < other.notemodel.timestamp
        elif other.notemodel.pinned and not self.notemodel.pinned:
            return True
        elif not other.notemodel.pinned and self.notemodel.pinned:
            return False
dataset/ETHPy150Open akehrer/Motome/Motome/Models/NoteListWidgetItem.py/NoteListWidgetItem.__lt__/original