How to sort my go.histogram by ascending/ descending

trace = go.Histogram(
x=df[‘Business field’].sort_values(),
‘Orchid’,‘SandyBrown’,‘Teal’],line=dict(color=’#000000’, width=2.5)))

data = [trace]
layout = go.Layout(
title=‘Duration of contract based on different program’,
xaxis=dict(title=‘Duration of contract’),
yaxis=dict( title=‘Count’),
template = ‘plotly_white’,

fig = go.Figure(data=data, layout=layout)

Just entered this plotly world, have a few questions about this package, first question would be how to order them by acending/descending please, it’s really easy to do with seaborn, but kind of struggling by using plotly though.

thanks a lot guys,

best regards,