Adjusted sorting to use -1/1 instead of the pymongo defaults.