Skip to content

Commit ee00283

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-29417 sort array update (#3035)
* DOCSP-29417-sort-array-update * DOCSP-29417-sort-array-update --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent ec89a80 commit ee00283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/reference/operator/aggregation/sortArray.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ descending (``-1`` ).
7474

7575
{
7676
input: <array-of-documents>,
77-
sortBy: { <document-field>: {sort-direction> }
77+
sortBy: { <document-field>: <sort-direction> }
7878
}
7979

8080
Sort by Value
@@ -88,7 +88,7 @@ sort or -1 for descending sort in the ``sortBy`` parameter.
8888

8989
{
9090
input: <array-of-documents>,
91-
sortBy: { sort-direction> }
91+
sortBy: <sort-direction>
9292
}
9393

9494
Considerations

0 commit comments

Comments
 (0)