Suggestion of better solution to the User Report Task

Chapter 3: Admin Backend, Ticket: User Report

we can just use $sortByCount instead of a combination of $group and $sort

Hi @Rafael_Green,
Wow, that’s a nicer way of doing it. Thanks for sharing, and yes you can totally use that to complete your exercise/lab.

Thanks & Regards.
Sourabh Bagrecha,
Curriculum Services Engineer