title: Sort with lambda in Python 3
body: <p>This code works in Python 2.7, how can I do that work in Python 3?</p>
  
  <pre><code>arestas = dict()
  edges = arestas.items()
  edges.sort(key=lambda x: x[1])
  </code></pre>
  
  <p>The error returned is:</p>
  
  <p>AttributeError: 'dict_items' object has no attribute 'sort'</p>
  
  <p>Thanks!</p>