how to sort lists using sort function in python