Delegate the creation of the cursor to the cursor class.
Add sort test.
Merge branch 'master' into mongodb-core