May 23, 2022 · In this short guide, learn how to sort a list in Python using the built-in sort() and sorted() functions.. sort() is a method of the list class, and sorts the list in-place, returning None. sorted() is a method built into the Python namespace, and sorts the list out-of-place, returning a sorted copy of the list, without affecting the original one. Generally speaking - sort() is more …