Chart is different orderd than trace

Hello,
My dataframe has columns: year and month.
In the trace they are well sorted.
image

In the chart , the years are seems ok but the months aren’t sorted .

trace1=go.Bar(
x = [df.year,df.month],
y = grouped_df[‘Values’]
)