With reference to the discussion around optimization (Chapter 6), the example shown has a $limit stage preceding a $sort stage.
Ideally the reverse will be the case i.e. you first $sort and then $limit the output results. Do you still get “Top-k” optimization in this case?
The documentation implies you do but the example seeems very specific