title: How to sort keys in dictionary if values are same ?
body: <p><strong>Sort the dictionary by score. if the score is same then  sort them by name</strong> </p>
  
  <pre><code>import operator
  dt={ 
  'sudha'  : {'score' : 75} ,
  'Amruta' : {'score' : 95} ,
  'Ramesh' : {'score' : 56} ,
  'Shashi' : {'score' : 78} ,
  'Manoj'  : {'score' : 69} ,
  'Resham'  : {'score' : 95} 
  } 
  
  sorted_x1 = sorted(dt.items(), key=operator.itemgetter(1))
  print sorted_x1
  </code></pre>
  
  <p>output is :</p>
  
  <pre><code>[('Ramesh', {'score': 56}), ('Manoj', {'score': 69}), 
   ('sudha', {'score':           75}), 
   ('Shashi', {'score': 78}),   ('Resham', {'score': 95}), ('Amruta',{'score': 95})]
  </code></pre>
  
  <p>Now I want to Sort Last two elements by its name because its scores are same .</p>