Field1 is a projection field for counting numbers that does not exist in the document.
Field1 values are output normally, but the final sorting operation is not performed.
I know how to write an aggregate pipeline, but I wonder if I can process it all at once with the Find Operator.
I would like to know information about my problem or technical support.
The order of the documents returned in the result set. Fields specified in the sort, must have an index.
But that is for find( query , projection , options ) but since I supected that find( query , projection ).sort() was simply 2 syntactic variations of the same server command. I ran explain() and both sends the same command to the server.
You have no choice but to go with aggregation. There would be not performance gain anyway with find() compare to aggregate().