"""Sort in ascending and descending order"""
list_test = [2, 1, 5, 3, 4]
#ascending is by default for sort
#Time Complexity: O(nlogn)
list_test.sort()
#For descending order
#Time Complexity: O(nlogn)
list_test.sort(reverse=True)
#For user-define order
list_test.sort(key=..., reverse=...)