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