sort() It's a list method , Need to call through list , Will sort the original list , Change the original list
sorted() It's a general function , It will sort the elements of the original list and return to the new list , The contents of the original list remain unchanged .