Generally in SOQL, null values are sorted first. In order to sort null values at last make use of NULLS LAST keyword.
Sample SOQL:
SELECT Id, Name, Industry
FROM Account
ORDER BY Industry DESC NULLS LAST
Generally in SOQL, null values are sorted first. In order to sort null values at last make use of NULLS LAST keyword.
Sample SOQL:
SELECT Id, Name, Industry
FROM Account
ORDER BY Industry DESC NULLS LAST