Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update order-by.md #1330

Merged
merged 1 commit into from
May 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions docs-2.0/3.ngql-guide/8.clauses-and-options/order-by.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,22 @@ nGQL lists NULL values at the end of the output for ascending sorting, and at th
nebula> MATCH (v:player{name:"Tim Duncan"}) --> (v2) \
RETURN v2.player.name AS Name, v2.player.age AS Age \
ORDER BY Age;
+-----------------+--------------+
| Name | Age |
+-----------------+--------------+
| "Tony Parker" | 36 |
| "Manu Ginobili" | 41 |
| "Spurs" | UNKNOWN_PROP |
+-----------------+--------------+
+-----------------+----------+
| Name | Age |
+-----------------+----------+
| "Tony Parker" | 36 |
| "Manu Ginobili" | 41 |
| __NULL__ | __NULL__ |
+-----------------+----------+

nebula> MATCH (v:player{name:"Tim Duncan"}) --> (v2) \
RETURN v2.player.name AS Name, v2.player.age AS Age \
ORDER BY Age DESC;
+-----------------+--------------+
| Name | Age |
+-----------------+--------------+
| "Spurs" | UNKNOWN_PROP |
| "Manu Ginobili" | 41 |
| "Tony Parker" | 36 |
+-----------------+--------------+
+-----------------+----------+
| Name | Age |
+-----------------+----------+
| __NULL__ | __NULL__ |
| "Manu Ginobili" | 41 |
| "Tony Parker" | 36 |
+-----------------+----------+
```