Searching google for "Plotly python sort histogram" comes up with this great example in the forum: https://community.plotly.com/t/plotly-express-histogram-any-way-to-sort-bar-by-value/23905 Would be nice if this was in the histogram docs