title: How to convert sort using cmp from python 2 to python 3?
body: <p>I'm trying to convert this code which is written in python 2 to python 3</p>
  
  <pre><code>nums = ["30", "31"]
  num.sort(cmp=lambda x, y: cmp(y + x, x + y))
  </code></pre>
  
  <p>Not sure how to do that in python 3 since cmp is removed (I believed)</p>
  
  <p>The result should be <code>["31", "30"]</code> instead of <code>["30", "31"]</code></p>