How to sort a field inside an array in MongoDB aggregation

前端 未结 0 1212

mongo playground

I want to sort the views from biggest to smallest inside for each category. How to sort this?

So the expected outcome should be like this:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题