Check out example codes for "sort order on two columns sql". It will help you in understanding the concepts better.

Code Example 1

Sort by multiple column : ORDER BY column1 DESC, column2

Learn ReactJs, React Native from akashmittal.com