diff --git a/source/includes/note-group-and-window-behavior.rst b/source/includes/note-group-and-window-behavior.rst index 634449f0652..9bb7544f6bb 100644 --- a/source/includes/note-group-and-window-behavior.rst +++ b/source/includes/note-group-and-window-behavior.rst @@ -1,6 +1,6 @@ To define the document order for |method| with the: -- :pipeline:`$group` stage, add a :pipeline:`$sort` stage after the +- :pipeline:`$group` stage, add a :pipeline:`$sort` stage before the :pipeline:`$group` stage. - :pipeline:`$setWindowFields` stage, set the :ref:`sortBy @@ -17,4 +17,4 @@ When used with :pipeline:`$setWindowFields`, |method| returns ``null`` for empty :ref:`windows `. An example empty window is a ``{ documents: [ -1, -1 ] }`` :ref:`documents ` window on the first document of a -:ref:`partition `. \ No newline at end of file +:ref:`partition `.