hi,
i have this different object that i query
{id: 1}
{id: 2}
{id: 3, stickyIndex:2}
currently i am querying it to get all the objects and then sort them by stickyIndex first, then by id:
i get in return {3, 1, 2}
however i want the stickyIndex to change the order and kind of splice the array of result and push it to the second position.
i want to get this result {1, 3, 2}
is there a way to get this order with one aggregate query (and not with manipulating the data after i get it back in the server side)?