Can’t get default order when using “color=column_name” in creating Gantt Chart

When I’m using px.timeline to create a Gantt Chart, I used one column in data frame as legend of different bars in the chart. The default order of the data frame is mixed with different states. But when using color=column_name in px.timeline, the charts are showed in the order of legend instead of the row order of data frame, is there any way to solve this?