Mongodb – Mongo query based on count and if count is same then alphabetically
I have a coupons collections and I am trying to group all the coupons based on the code. After that I want to sort them on the basis of the count. Till this the query works fine. But after this…