How To Sort A Nested List In Python