Skip to content

Commit 0e80c35

Browse files
post review fixes
1 parent 22b6fa8 commit 0e80c35

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

modules/ROOT/pages/clauses/order-by.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
[[query-order]]
44
= ORDER BY
55

6-
`ORDER BY` specifies how the output of a clause should be sorted.
7-
It be used as a subclause following `RETURN` or `WITH`.
6+
`ORDER BY` is a subclause which specifies the order in which the output of a xref:clauses/return.adoc[`RETURN`] or xref:clauses/with.adoc[`WITH`] clause.
7+
As of Neo4j 5.24, it can also be used as a standalone clause, either on its own or in combination with `SKIP`/`OFFSET` or `LIMIT`.
88

99
`ORDER BY` relies on comparisons to sort the output, see xref:values-and-types/ordering-equality-comparison.adoc[Ordering and comparison of values].
1010
You can sort on many different values, e.g. node/relationship properties, the node/relationship ids, or on most expressions.

modules/ROOT/pages/subqueries/collect.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,9 @@ and then calculates the average age for each group.
276276
MATCH (person:Person)
277277
RETURN COLLECT {
278278
MATCH (person)-[:HAS_DOG]->(d:Dog)
279-
RETURN d.name } AS dogNames,
280-
avg(person.age) AS averageAge
279+
RETURN d.name
280+
} AS dogNames,
281+
avg(person.age) AS averageAge
281282
ORDER BY dogNames
282283
----
283284

modules/ROOT/pages/subqueries/existential.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ MATCH (person:Person)
155155
RETURN person.name AS name,
156156
EXISTS {
157157
MATCH (person)-[:HAS_DOG]->(:Dog)
158-
} AS hasDog
158+
} AS hasDog
159159
----
160160

161161
[role="queryresult",options="header,footer",cols="2*<m"]

0 commit comments

Comments
 (0)