From 05ca193331be8b9a3c7fd94256d0eee37fb7eecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ux=C3=ADo=20Fuentefr=C3=ADa?= Date: Thu, 3 Sep 2015 16:50:29 +0200 Subject: [PATCH] DATAMONGO-1378 - Update reference documentation: Change Query.sort() to Query.with(Sort sort). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/main/asciidoc/reference/mongodb.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/asciidoc/reference/mongodb.adoc b/src/main/asciidoc/reference/mongodb.adoc index 3c2cdabc5..3a7fe3d04 100644 --- a/src/main/asciidoc/reference/mongodb.adoc +++ b/src/main/asciidoc/reference/mongodb.adoc @@ -1059,7 +1059,7 @@ The `Query` class has some additional methods used to provide options for the qu * `Field` *fields* `()` used to define fields to be included in the query results * `Query` *limit* `(int limit)` used to limit the size of the returned results to the provided limit (used for paging) * `Query` *skip* `(int skip)` used to skip the provided number of documents in the results (used for paging) -* `Sort` *sort* `()` used to provide sort definition for the results +* `Query` *with* `(Sort sort)` used to provide sort definition for the results [[mongo-template.querying]] === Methods for querying for documents