Lecture: The $sortByCount Stage

Was this supposed to appear much earlier in the Chapter? It’s listed as the last item and it probably was supposed to be ordered just before $bucket. Just checking.


I agree. Thank you very much for pointing this out. As $sortByCount can be used within a $facet sub-pipeline and it is mentioned in the facets quiz I believe it is reasonable to move this lecture before the facets ones.

José Carlos