Write a Python code to sort a nested list code example Example: sorting by second element sorted(LISTNAME, key=lambda x: x[1])