title: Python sort dictionary by descending values and then by keys alphabetically
body: <p>I have the following dictionary:    </p>
  
  <pre><code>fruits = {
      "apple": 5,
      "Apple": 5,
      "orange": 5,
      "strawberry": 3,
      "blueberry": 1
  }
  </code></pre>
  
  <p>I need to print out a list of the two keys with the highest values. Ties need to be broken alphabetically A-Z with capital letters taking precedence over lowercase ones. Running the following sorts by the counts, but doesn't break the ties:</p>
  
  <pre><code>popular_fruits = sorted(fruits, key=fruits.get, reverse=True)
  print(popular_fruits[0:2])
  </code></pre>
  
  <p>How can I accomplish this?</p>