title: ValueError: too many values to unpack
body: <p>I am trying to sort dictionaries in MongoDB. However, I get the value error "too many values to unpack" because I think it's implying that there are too many values in each dictionary (there are 16 values in each one). This is my code:</p>
  
  <pre><code>FortyMinute.find().sort(['Rank', 1])
  </code></pre>
  
  <p>Anyone know how to get around this?</p>
  
  <p>EDIT: Full traceback</p>
  
  <pre><code>Traceback (most recent call last):
    File "main.py", line 33, in &lt;module&gt;
      main(sys.argv[1:])
    File "main.py", line 21, in main
      fm.readFortyMinute(args[0])
    File "/Users/Yih-Jen/Documents/Rowing Project/FortyMinute.py", line 71, in readFortyMinute
      writeFortyMinute(FortyMinData)
    File "/Users/Yih-Jen/Documents/Rowing Project/FortyMinute.py", line 104, in writeFortyMinute
      FortyMinute.find().sort(['Rank', 1])        
    File "/Users/Yih-Jen/anaconda/lib/python2.7/site-packages/pymongo/cursor.py", line 692, in sort
      self.__ordering = helpers._index_document(keys)
    File "/Users/Yih-Jen/anaconda/lib/python2.7/site-packages/pymongo/helpers.py", line 65, in       _index_document
      for (key, value) in index_list:
  ValueError: too many values to unpack
  </code></pre>