summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/expressions.txt16
1 files changed, 14 insertions, 2 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index 91786b3622..e46df22f98 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -560,14 +560,26 @@ calling the appropriate methods on the wrapped expression.
nested expressions. ``F()`` objects, in particular, hold a reference
to a column.
- .. method:: asc()
+ .. method:: asc(nulls_first=False, nulls_last=False)
Returns the expression ready to be sorted in ascending order.
- .. method:: desc()
+ ``nulls_first`` and ``nulls_last`` define how null values are sorted.
+
+ .. versionchanged:: 1.11
+
+ The ``nulls_last`` and ``nulls_first`` parameters were added.
+
+ .. method:: desc(nulls_first=False, nulls_last=False)
Returns the expression ready to be sorted in descending order.
+ ``nulls_first`` and ``nulls_last`` define how null values are sorted.
+
+ .. versionchanged:: 1.11
+
+ The ``nulls_first`` and ``nulls_last`` parameters were added.
+
.. method:: reverse_ordering()
Returns ``self`` with any modifications required to reverse the sort