title: How to re-order labels in a graph? - Python
body: <p>I am trying to re-order the labels of my graph.</p>
  <p>Currently my graph looks like this:
  <a href="https://i.stack.imgur.com/oElHO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oElHO.png" alt="enter image description here" /></a></p>
  <p>As you can see the labels at the bottom are in this order:</p>
  <p>'&gt;100k', '&lt;25k', '50-100k', '25-50k'</p>
  <p>But I want to reorder them to be displayed like this:</p>
  <p>'&lt;25k', '25-50k', '50-100k', '&gt;100k'</p>
  <p>which makes much more sense.</p>
  <p>I have used this code</p>
  <pre><code>data.sort_values('$Group', ascending=False, inplace=True)
  </code></pre>
  <p>but it doesn't help since the data is not numerical.</p>
  <p>Is it possible to re-order the labels?</p>
  <p>Thank you.</p>