Working with dates and time mission problem

https://app.dataquest.io/m/1000353/working-with-dates-and-times-in-python-practice-problems/13/maximum-number-of-simultaneous-sessions

def __lt__(self, other):        
        
        if self.time == other.time:
            return self.is_start
        return self.time < other.time

I do not understand how this part of code work here. Really appreciate if someone can help me to understand the function

In simple terms, this function overloads the < operator.

Hi there,
Thank you for taking your time to explain the function. Now I got the idea behind this.

I’m glad I could assist.