how to sort the elements of a function python code example Example: sorting in python python list sort()