I'm trying to create a custom list subclass that inherits all aspects of the list class, except that its append method  sorts the list each time a new object is added.
So far, I have something like this:
class CommentList(list):
    def append(self, other):
         return self.data_list.append(other)
I'm not sure how I can introduce the sort functionality to this and how I can improve the method above.
 
     
     
     
     
    