title: python sorting dictionary by length of values
body: <p>I have found many threads for sorting by values like <a href="https://stackoverflow.com/questions/613183/python-sort-a-dictionary-by-value">here</a> but it doesn't seem to be working for me...</p>
  
  <p>I have a dictionary of lists that have tuples. Each list has a different amount of tuples. I want to sort the dictionary by how many tuples each list contain.</p>
  
  <pre><code>&gt;&gt;&gt;to_format 
  &gt;&gt;&gt;{"one":[(1,3),(1,4)],"two":[(1,2),(1,2),(1,3)],"three":[(1,1)]}
  &gt;&gt;&gt;for key in some_sort(to_format):
         print key,
  &gt;&gt;&gt;two one three
  </code></pre>
  
  <p>Is this possible?</p>