python code screenshot to sort a list