Check out example codes for "mysql order by desc null last". It will help you in understanding the concepts better.

Code Example 1

SELECT * FROM user 

ORDER BY COALESCE(name, 'zz') DESC

Learn ReactJs, React Native from akashmittal.com