Skip to content

Commit 90a4a63

Browse files
Uxio0mp911de
authored andcommitted
DATAMONGO-1378 - Update reference documentation: Change Query.sort() to Query.with(Sort sort).
sort() is not a method of Query, to sort a query you have to use with(). Original pull request: #320. CLA: 162620160211060822 (Uxío Fuentefría)
1 parent 0f14e35 commit 90a4a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/asciidoc/reference/mongodb.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ The `Query` class has some additional methods used to provide options for the qu
10591059
* `Field` *fields* `()` used to define fields to be included in the query results
10601060
* `Query` *limit* `(int limit)` used to limit the size of the returned results to the provided limit (used for paging)
10611061
* `Query` *skip* `(int skip)` used to skip the provided number of documents in the results (used for paging)
1062-
* `Sort` *sort* `()` used to provide sort definition for the results
1062+
* `Query` *with* `(Sort sort)` used to provide sort definition for the results
10631063

10641064
[[mongo-template.querying]]
10651065
=== Methods for querying for documents

0 commit comments

Comments
 (0)