Concept Flow - ORDER BY with NULLS FIRST and NULLS LAST
Start with unsorted data
Apply ORDER BY clause
Check for NULL values
Sort non-NULL values
Return sorted result
The data is sorted by a column. NULL values are placed either at the start or end before sorting the non-NULL values.