Sorting Using Lambda Functions In Python