Nulls
Specifies the ordering of NULL values in a sorted query result set. This is used in conjunction with ORDER BY to control whether NULLs appear before or after non-NULL values.
Example
Employees
.select(
Employees.firstName,
Employees.lastName,
).orderBy(
OrderColumn(
Employees.firstName,
sort = Sort.ASC,
nulls = Nulls.LAST,
),
).execute()Content copied to clipboard
FIRST Places NULL values at the beginning of the sorted result set. LAST Places NULL values at the end of the sorted result set.
Author
MOHAMMAD AZIM ANSARI