This is my sorted dataframe by year and month:
year
month
df:
Year Month YearMonthName revenue 2015 1 2015 Jan 166 20