Assigning a real-time ranking/order/index to a sorted list using the MongoDB Aggregation framework
After a couple hours of Googling and experimentation, I figured out a solution to a weird problem I was having with MongoDB, so I’d like to share that in case…