Hi i have some question what i want to achieve is to sort progress in index 1 how can i do it with mongodb? i try some code but cannot achieve it
{ "fb_id" : "user1", "progress" : [ 1, 20 ] }
{ "fb_id" : "user2", "progress" : [ 2, 10 ] }
{ "fb_id" : "user3", "progress" : [ 3 ] }
the result i expected is some kind like this
{ "fb_id" : "user2", "progress" : [ 10 ] }
{ "fb_id" : "user1", "progress" : [ 20 ] }
It is that i can achieve it through some basic mongodb query? Thank you