my_list = [3, 2, 1]
my_list.sort()
print(my_list)  # [1, 2, 3]

my_list = [1, 2, 3]
my_list.sort(reverse=True)
print(my_list)  # [3, 2, 1]