I know that this sounds trivial but I did not realize that the sort() function of Python was weird. I have a list of \"numbers\" that are actually in string for
sort()
In case you want to use sorted() function: sorted(list1, key=int)
sorted(list1, key=int)
It returns a new sorted list.