QnaList > Groups > Mongodb-User > Mar 2016
faq

[mongodb-user] Sorting By Criteria

I have a field `status` in the collection which contains values: A,B or C. Is there a easy way to find with a sort by the order B, C, A (as in status B on the top of the list, then C and then A) ? 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/EFC11A58-EBA6-46E5-A751-878FFD5E38C5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

asked Mar 31 2016 at 19:15

Thai Tran 's gravatar image



Related discussions

Tagged

Group Mongodb-user

asked Mar 31 2016 at 19:15

active Mar 31 2016 at 19:15

posts:1

users:1

©2013 QnaList.com