Check out example codes for "sql server order by nulls last". It will help you in understanding the concepts better.

Code Example 1

SELECT *FROM creditCardORDER BY CASE WHEN monthlyLimit IS NULL THEN 1 ELSE 0 END DESC, monthlyLimit DESC;

Learn ReactJs, React Native from akashmittal.com