From 6b284bfc7773b6228d41db7e7c19c5fe11b8067e Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Fri, 28 May 2021 18:24:54 -0700 Subject: [PATCH] Note NULLS FIRST/LAST in ORDER BY --- doc/clause-reference.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/clause-reference.md b/doc/clause-reference.md index df93457..d69cab5 100644 --- a/doc/clause-reference.md +++ b/doc/clause-reference.md @@ -695,7 +695,8 @@ user=> (sql/format (-> (select :id `:order-by` accepts a sequence of one or more ordering expressions. Each ordering expression is either a simple SQL entity or a pair of a SQL expression and a direction -(which can be `:asc` or `:desc` -- or the symbol equivalent). +(which can be `:asc`, `:desc`, `:nulls-first`, `:desc-null-last`, +etc -- or the symbol equivalent). If you want to order by an expression, you should wrap it as a pair with a direction: