Skip to content

Commit ff6fc0b

Browse files
asya999jeff-allen-mongo
authored andcommitted
Sort should be before not after group
1 parent fddf63c commit ff6fc0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/includes/note-group-and-window-behavior.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
To define the document order for |method| with the:
22

3-
- :pipeline:`$group` stage, add a :pipeline:`$sort` stage after the
3+
- :pipeline:`$group` stage, add a :pipeline:`$sort` stage before the
44
:pipeline:`$group` stage.
55

66
- :pipeline:`$setWindowFields` stage, set the :ref:`sortBy
@@ -17,4 +17,4 @@ When used with :pipeline:`$setWindowFields`, |method| returns ``null``
1717
for empty :ref:`windows <setWindowFields-window>`. An example empty
1818
window is a ``{ documents: [ -1, -1 ] }`` :ref:`documents
1919
<setWindowFields-documents>` window on the first document of a
20-
:ref:`partition <setWindowFields-partitionBy>`.
20+
:ref:`partition <setWindowFields-partitionBy>`.

0 commit comments

Comments
 (0)