list(A).sort() sorts the list alist inplace. Nothing is returned. The list object is directly changed. Sorting is done according to the operator <.
sorted