I have created a visualization utilizing the plotly library within Python. Everything looks fine, except the axis is starting with 2020 and then shows 2019. The axis should be the opposite of what is displayed.

Here is the data (df):

```
   date      percent   type
   3/1/2020  10        a
   3/1/2020  0         b
   4/1/2020  15        a
   4/1/2020  60        b
   1/1/2019  25        a
   1/1/2019  1         b
   2/1/2019  50        c 
   2/1/2019  20        d

```

This is what I am doing

```
 import plotly.express as px
 px.scatter(df, x = "date", y = "percent", color = "type", facet_col = "type")

```

How would I make it so that the dates are sorted correctly, earliest to latest? The dates are sorted within the raw data so why is it not reflecting this on the graph?

Any suggestion will be appreciated.

Here is the result:

[![enter image description here](https://i.stack.imgur.com/luw5Z.png)](https://i.stack.imgur.com/luw5Z.png)