Python Sorting Numbers With Lambda Test