diff --git a/docs-2.0/3.ngql-guide/6.functions-and-expressions/7.count.md b/docs-2.0/3.ngql-guide/6.functions-and-expressions/7.count.md index 5ed81fc4ff7..6fa5178aeaf 100644 --- a/docs-2.0/3.ngql-guide/6.functions-and-expressions/7.count.md +++ b/docs-2.0/3.ngql-guide/6.functions-and-expressions/7.count.md @@ -66,7 +66,7 @@ nebula> LOOKUP ON player \ YIELD player.age As playerage \ | GROUP BY $-.playerage \ YIELD $-.playerage as age, count(*) AS number \ - | ORDER BY number DESC, age DESC; + | ORDER BY $-.number DESC, $-.age DESC; +-----+--------+ | age | number | +-----+--------+ diff --git a/docs-2.0/3.ngql-guide/8.clauses-and-options/limit.md b/docs-2.0/3.ngql-guide/8.clauses-and-options/limit.md index 25d811643e3..94ab6de5624 100644 --- a/docs-2.0/3.ngql-guide/8.clauses-and-options/limit.md +++ b/docs-2.0/3.ngql-guide/8.clauses-and-options/limit.md @@ -31,7 +31,7 @@ YIELD # 从排序结果中返回第2行开始的3行数据。 nebula> GO FROM "player100" OVER follow REVERSELY \ YIELD $$.player.name AS Friend, $$.player.age AS Age \ - | ORDER BY Age,Friend \ + | ORDER BY $-.Age, $-.Friend \ | LIMIT 1, 3; +-------------------+-----+ | Friend | Age | diff --git a/docs-2.0/3.ngql-guide/8.clauses-and-options/where.md b/docs-2.0/3.ngql-guide/8.clauses-and-options/where.md index afaf2248b96..35643bcec6d 100644 --- a/docs-2.0/3.ngql-guide/8.clauses-and-options/where.md +++ b/docs-2.0/3.ngql-guide/8.clauses-and-options/where.md @@ -182,7 +182,7 @@ nebula> GO FROM "1" \ OVER e1 \ WHERE e1._rank>2 \ YIELD e1._src, e1._dst, e1._rank AS Rank, e1.p1 | \ - ORDER BY Rank DESC; + ORDER BY $-.Rank DESC; ==================================== | e1._src | e1._dst | Rank | e1.p1 | ====================================