title: TypeError: '<' not supported between instances of 'dict' and 'dict'
body: <p>I had a perfectly functioning sort by value in python 2.7 but I'm trying to upgrade to python 3.6 and I get that error:</p>
  
  <p>TypeError: '&lt;' not supported between instances of 'dict' and 'dict'</p>
  
  <p>Here is my code</p>
  
  <pre><code>server_list = []
  
  for server in res["aggregations"]["hostname"]["buckets"]:
      temp_obj = []
      temp_obj.append({"name":server.key})        
      temp_obj.append({"stat": server["last_log"]["hits"]["hits"][0]["_source"][system].stat})
      server_list.append(temp_obj)
      server_list.sort(key=lambda x: x[0], reverse=False)
  </code></pre>
  
  <p>Why it's considered as a dict when I declare my server_list as a list. How can I make it sort by my name attribute?</p>