Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort should accept a list of pairs (tuples) as arg #11

Open
pauloalem opened this issue Sep 28, 2012 · 1 comment
Open

Sort should accept a list of pairs (tuples) as arg #11

pauloalem opened this issue Sep 28, 2012 · 1 comment

Comments

@pauloalem
Copy link
Contributor

Dictionary order is not guaranteed and the driver should accept a list a of pairs (tuples) as specified in http://api.mongodb.org/python/current/api/pymongo/cursor.html#pymongo.cursor.Cursor.sort

@tahajahangir
Copy link
Contributor

Client.sort already accepts a list of pairs (tuples) as sort argument (related to #35 ).

Really, the value passed as sort argument is not checked to be a list of pairs, it is passed directly in $orderby key to mongodb, so it can/should be a list of pairs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants