ordering with DESC & NULLS LAST together

One more sample query which is probably one of most useful ones in real life (by default, DESC ordering leads to NULLS FIRST option, this is not so clear for beginners), showing how to combine ordering direction and NULLS *** for the same column.
This commit is contained in:
NikolayS
2015-12-11 09:22:45 +03:00
parent 87ceac7b00
commit aed97d97f8
+1
View File
@@ -169,6 +169,7 @@ If you care where nulls are sorted, add `nullsfirst` or `nullslast`:
```HTTP
GET /people?order=age.nullsfirst
GET /people?order=age.desc.nullslast
```
You can also use [computed