Sorting list by an attribute that can be None,mylist.sort(key=lambda x: Min if x is None else x)