Write a code to sort a numerical list in Python.