/home/mark/<ipython console> in <module>()
/usr/lib/python2.5/site-packages/pymongo-1.5.2-py2.5-linux-x86_64.egg/pymongo/cursor.pyc in sort(self, key_or_list, direction)
277 """
278 self.__check_okay_to_chain()
--> 279 keys = helpers._index_list(key_or_list, direction)
280 self.__ordering = helpers._index_document(keys)
281 return self
/usr/lib/python2.5/site-packages/pymongo-1.5.2-py2.5-linux-x86_64.egg/pymongo/helpers.pyc in _index_list(key_or_list, direction)
42 return [(key_or_list, pymongo.ASCENDING)]
43 elif not isinstance(key_or_list, list):
---> 44 raise TypeError("if no direction is specified, "
45 "key_or_list must be an instance of list")
46 return key_or_list
TypeError: if no direction is specified, key_or_list must be an instance of list