sort option broken for nested fields #533
Closed
Comments
There's also this implementation of sorting on subkeys that's planned for review: #443 (specifically, this commit lvbreda@df0b088) |
@rtfeldman, thanks for pointing out the urgency of this. @josephers, thanks for making the connection :) We will try to get this done soon. |
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
A
find
on accounts with{ sort: { _id: -1 }}
works as expected, but if you instead do{ sort: { 'profile.name': -1 }}
it reverts to natural sorting order.This is noted in a comment here: https://github.com/meteor/meteor/blob/master/packages/minimongo/minimongo.js#L47
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.The text was updated successfully, but these errors were encountered: