Skip to content

Commit acbd03c

Browse files
committed
MM comments
1 parent 0e1b9fe commit acbd03c

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

source/crud/query/specify-return-documents.txt

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ operation by using the following methods:
2727
- ``SetSkip()``: Specifies the number of documents to skip before returning query results.
2828
- ``SetLimit()``: Specifies the maximum number of documents to return from a query.
2929

30-
Sample Data for Examples
31-
~~~~~~~~~~~~~~~~~~~~~~~~
30+
Sample Data
31+
~~~~~~~~~~~
3232

3333
The examples in this guide use the following ``Course`` struct as a model for documents
3434
in the ``courses`` collection:
@@ -83,12 +83,9 @@ specify this sort, pass the field you want to sort by and ``1`` to the
8383
.. tip::
8484

8585
With an ascending sort, the method orders values of type
86-
``Boolean`` from ``false`` *to* ``true``, ``String`` type values
87-
from *a to z* and numeric type values from *negative infinity to
88-
positive infinity*.
89-
90-
Example
91-
```````
86+
``Boolean`` from ``false`` to ``true``, ``String`` type values
87+
from a to z and numeric type values from negative infinity to
88+
positive infinity.
9289

9390
The following example specifies an ascending sort on the ``enrollment`` field:
9491

@@ -131,12 +128,9 @@ specify this sort, pass the field you want to sort by and ``-1`` to the
131128
.. tip::
132129

133130
With an descending sort, the method orders values of type
134-
``Boolean`` from ``true`` *to* ``false``, ``String`` type values
135-
from *z to a* and numeric type values from *positive infinity to
136-
negative infinity*.
137-
138-
Example
139-
```````
131+
``Boolean`` from ``true`` to ``false``, ``String`` type values
132+
from z to a and numeric type values from positive infinity to
133+
negative infinity.
140134

141135
The following example specifies a descending sort on the ``enrollment`` field:
142136

@@ -189,9 +183,6 @@ You can sort on additional fields to resolve ties in the original sort.
189183
If you want to guarantee a specific order for documents, select sort fields
190184
that do not result in ties.
191185

192-
Example
193-
```````
194-
195186
The following example specifies a descending sort on the ``enrollment`` field,
196187
then an ascending sort on the ``title`` field:
197188

@@ -231,9 +222,6 @@ Aggregation
231222
You can also include the :manual:`$sort </reference/operator/aggregation/sort/>`
232223
stage to specify a sort in an aggregation pipeline.
233224

234-
Example
235-
```````
236-
237225
The following example specifies a descending sort on the ``enrollment``
238226
field, then an ascending sort on the ``title`` field:
239227

0 commit comments

Comments
 (0)