Skip to content

Commit c409609

Browse files
committed
minor
1 parent 7e46a5f commit c409609

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/sql-ref-syntax-qry-select-orderby.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ a total order in the output.
2424

2525
### Syntax
2626
{% highlight sql %}
27-
ORDER BY { expression [ sort_direction | nulls_sort_oder ] [ , ...] }
27+
ORDER BY { expression [ sort_direction | nulls_sort_oder ] [ , ... ] }
2828
{% endhighlight %}
2929

3030
### Parameters
@@ -38,7 +38,7 @@ ORDER BY { expression [ sort_direction | nulls_sort_oder ] [ , ...] }
3838
<dd>
3939
Optionally specifies whether to sort the rows in ascending or descending
4040
order. The valid values for the sort direction are <code>ASC</code> for ascending
41-
and <code>DESC</code> for descending. If sort direction is not explicitly specified then by default
41+
and <code>DESC</code> for descending. If sort direction is not explicitly specified, then by default
4242
rows are sorted ascending. <br><br>
4343
<b>Syntax:</b>
4444
<code>
@@ -50,7 +50,7 @@ ORDER BY { expression [ sort_direction | nulls_sort_oder ] [ , ...] }
5050
Optionally specifies whether NULL values are returned before/after non-NULL values, based on the
5151
sort direction. In Spark, NULL values are considered to be lower than any non-NULL values by default.
5252
Therefore the ordering of NULL values depend on the sort direction. If <code>null_sort_order</code> is
53-
not specified then NULLs sort first if sort order is <code>ASC</code> and NULLS sort last if
53+
not specified, then NULLs sort first if sort order is <code>ASC</code> and NULLS sort last if
5454
sort order is <code>DESC</code>.<br><br>
5555
<ol>
5656
<li> If <code>NULLS FIRST</code> (the default) is specified, then NULL values are returned first

0 commit comments

Comments
 (0)