I have a list of lists that looks something like this:
dateList = [['2014', '4'], ['2015', '6'], ['2017', '6'], ['2016', '2'], ['2016', '3'], ['2017', '9'], ['2016', '6'], ['2017', '3'], ['2014', '8'], ['2014', '10'], ['2017', '10'], ['2014', '9'], ['2014', '3'], ['2015', '11'], ['2015', '2']]
I have been trying to sort it by year first, and then by month. I've been successful in sorting it by year using
sortedList = sorted(dateList, key = lambda x: int(x[0]))
However, I can't figure out a way to sort it by month afterwards while keeping the years in ascending order.