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 option broken for nested fields #533

rtfeldman opened this Issue Dec 9, 2012 · 3 comments


None yet
4 participants

rtfeldman commented Dec 9, 2012

A find on accounts with { sort: { _id: -1 }} works as expected, but if you instead do { sort: { '': -1 }} it reverts to natural sorting order.

This is noted in a comment here:

This has recently become much more urgent now that all the account profile information has been moved to profile and can no longer be sorted without this working.


This comment has been minimized.

josephers commented Dec 10, 2012

There's also this implementation of sorting on subkeys that's planned for review: #443

(specifically, this commit lvbreda@df0b088)


This comment has been minimized.


gschmidt commented Dec 10, 2012

@rtfeldman, thanks for pointing out the urgency of this. @josephers, thanks for making the connection :)

We will try to get this done soon.


This comment has been minimized.


n1mmy commented Dec 18, 2012

This is now on devel in 6deacbc (using @lvbreda's commit, thanks for the pointer @josephers)

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