I\'m using the MongoDB shell to fetch some results, ordered. Here\'s a sampler,
{ \"_id\" : \"32022\", \"topics\" : [ { \"weight\" : 281.58551703
If you don't want to update but only get documents, you can use the following query
db.test.aggregate( [ {$unwind : "$topics"}, {$sort : {"topics.weight":-1}}, {"$group": {"_id": "$_id", "topics": {"$push": "$topics"}}} ] )