-
sort method
Sort the contents of the list.
.sort(reverse=True) sorts in reverse order.
Lists containing numbers and letters cannot be sorted.
You can also sort characters.
You can also sort the characters in reverse order.
If uppercase and lowercase letters are involved, uppercase comes first.
If you want alphabetical order, use .sort(key=str.lower).