title: Custom sorting with Pandas
body: <p>I have the following dataframe that I would like to sort first by Criticality and then by Name:</p>
  
  <pre><code>Name        Criticality
  baz         High
  foo         Critical
  baz         Low
  foo         Medium
  bar         High
  bar         Low
  bar         Medium
  ...
  </code></pre>
  
  <p>I've been trying to do this using the answer provided in <a href="https://stackoverflow.com/questions/13838405/custom-sorting-in-pandas-dataframe">this post</a> but I just can't get it to work. </p>
  
  <p>The end result should be like this</p>
  
  <pre><code>Name        Criticality
  bar         High
  bar         Medium
  bar         Low
  baz         High
  baz         Low
  foo         Critical
  foo         Medium
  </code></pre>