Lets say I have an aggregation pipeline, and I am being able to get the required details as needed but I need to sort values of key named visits in descendi