From 735f3218f9381f62d0b72a785819481fbcfaa5d1 Mon Sep 17 00:00:00 2001 From: Christoph Strobl Date: Fri, 18 Jun 2021 12:57:43 +0200 Subject: [PATCH] Update reference documentation. Fix sorting query part that should be 'orderBy'. Original Pull Request: #2087 --- src/main/asciidoc/reference/redis-repositories.adoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/asciidoc/reference/redis-repositories.adoc b/src/main/asciidoc/reference/redis-repositories.adoc index c598c0cd9..f953d9309 100644 --- a/src/main/asciidoc/reference/redis-repositories.adoc +++ b/src/main/asciidoc/reference/redis-repositories.adoc @@ -713,7 +713,10 @@ The following table provides an overview of the keywords supported for Redis and [[redis.repositories.queries.sort]] === Sorting Query Method results -Redis repositories allow various approaches to define sorting order. Redis itself does not support in-flight sorting when retrieving hashes or sets. Therefore, Redis repository query methods construct a `Comparator` that is applied to the result before returning results as `List`. Let's take a look at the following example: +Redis repositories allow various approaches to define sorting order. +Redis itself does not support in-flight sorting when retrieving hashes or sets. +Therefore, Redis repository query methods construct a `Comparator` that is applied to the result before returning results as `List`. +Let's take a look at the following example: .Sorting Query Results ==== @@ -721,7 +724,7 @@ Redis repositories allow various approaches to define sorting order. Redis itsel ---- interface PersonRepository extends RedisRepository { - List findByFirstnameSortByAgeDesc(String firstname); <1> + List findByFirstnameOrderByAgeDesc(String firstname); <1> List findByFirstname(String firstname, Sort sort); <2> }