re-arrange list of numbers in order of size python code example Example: how to sort a list in python old_list = [3,2,1] old_list.sort()