title: sorting a default dict python
body: <p>I have a default dict of following type:</p>
  
  <pre><code> defaultdict(&lt;type 'list'&gt;, {573014L: [{564470L: 0.011759742609333696}, {573012L:
   0.99999999999999978}, {573013L: 0.0032456927808054942}, {573015L: 
   0.0032456927808054942}, {573016L: 0.0038420894057914217}, {573017L: 
   0.0038420894057914217}, 
  {573018L: 0.0034037733703310181}, {573019L: 0.0034037733703310181}], 573012L: [{564470L:  
  0.011759742609333696}, {573013L: 0.0032456927808054942}, {573014L: 0.99999999999999978}, 
  {573015L: 0.0032456927808054942}, {573016L: 0.0038420894057914217}, {573017L: 
  0.0038420894057914217}, {573018L: 0.0034037733703310181}, {573019L: 
   0.0034037733703310181}] }
  </code></pre>
  
  <p>So for each primary key, I want to sort the list of (k,v) pairs based on their values.</p>
  
  <p>For example. for first key</p>
  
  <pre><code> 573014:[{573012:0.9999},{564470: 0.11759}.... and so on... decreasing values order...]
  </code></pre>
  
  <p>How do i do this in pythonic way </p>
  
  <p>Thanks</p>