87
Neo4j Order By Clause
In Neo4j, The ORDER BY Clause is used to arrange the result data in order.
Syntax:
Let’s create some nodes in the Neo4j database.
Output:
You can see that 6 nodes are created.
Output:
Order Nodes by Multiple Properties
ORDER BY clause is used to arrange the nodes based on multiple properties.
Syntax:
Example:
Output:
Order Nodes in Descending Order
Syntax:
Now arrange the nodes of the database in descending order:
Output:
Next TopicNeo4j Limit Clause