title: Cannot convert a dictionary into list of tuples and sort it
body: <p>I want to find outliers keys (names) in my dataset, so that I am trying to create a list of tuples from my dictionary and sort them by salary. That is my code</p>
  
  <pre><code>for key, value in data_dict.iteritems():
      sorted_dict_list = []
      sorted_dict_list.append((key, value["salary"], value["bonus"]))
      sorted_dict_list.sort(key=lambda tup: tup[1])
      for tuple in sorted_dict_list:
          print tuple
  </code></pre>
  
  <p>The problem is that the printed output is unsorted. What might be the problem?</p>