What is the best way to sort a csv file in python with multiple columns on date?

My Small solution: