Plotly Express histogram, any way to sort bar by value?

Thanks for the response. Your explanation makes sense, i think i was under the impression that it could arrange in a descending order per group of bars rather than the total.