diff --git a/docs/sql_reference/commands/queries/select.md b/docs/sql_reference/commands/queries/select.md index 0d9acde9..5acf1cc5 100644 --- a/docs/sql_reference/commands/queries/select.md +++ b/docs/sql_reference/commands/queries/select.md @@ -645,7 +645,7 @@ When including multiple clauses, the same number of columns must be selected by The `ORDER BY` clause sorts a result set by one or more output expressions. `ORDER BY` is evaluated as the last step after any `GROUP BY` or `HAVING` clause. `ASC` and `DESC` determine whether results are sorted in ascending or descending order. When the clause contains multiple expressions, the result set is sorted according to the first expression. Then the second expression is applied to rows that have matching values from the first expression, and so on. -NULLS FIRST is the default for DESC order, and NULLS LAST otherwise. +The NULLS FIRST and NULLS LAST options can be used to determine whether nulls appear before or after non-null values in the sort ordering. By default, null values sort as if larger than any non-null value; that is, NULLS FIRST is the default for DESC order, and NULLS LAST is the default for ASC order. ### Syntax {: .no_toc}