After some aggregations I have only one document like this:
{
a:[3,5,8,1,...],
b:[5,2,6,5,...],
c:[2,6,3,1,...]
}
What is the best way to get:
{
a:[1,2,3,4,...],
b:[1,2,3,4,...],
c:[1,2,3,4,...]
}
I need it to be sorted to do other aggregations so I can't use find or update.