title: Sort a dictionary alphabetically, and print it by frequency
body: <p>I am running python 2.7.2 on a mac.</p>
  
  <p>I have a simple dictionary:</p>
  
  <pre><code>dictionary= {a,b,c,a,a,b,b,b,b,c,a,w,w,p,r}
  </code></pre>
  
  <p>I want it to be printed and have the output like this:</p>
  
  <pre><code>Dictionary in alphabetical order:
      a  4
      b  5
      c  2
      p  1
      r  1
      w  2
  </code></pre>
  
  <p>But what I'm getting is something like this...</p>
  
  <pre><code>a  1
  a  1
  a  1
  a  1
  b  1
  .
  .
  .
  w  1
  </code></pre>
  
  <p>This is the code I am using.</p>
  
  <pre><code>new_dict = []
  
  
      for word in dictionary.keys():
          value = dictionary[word]
          string_val = str(value)
          new_dict.append(word + ": " + string_val)
  
      sorted_dictionary = sorted(new_dict)
  
      for entry in sorted_dictionary:
          print entry
  </code></pre>
  
  <p>Can you please tell me where is the mistake?
  (By the way, I'm not a programmer but a linguist, so please go easy on me.)</p>