Check out example codes for "order by oracle". It will help you in understanding the concepts better.

Code Example 1

SELECT expressions
FROM tables
[WHERE conditions]
ORDER BY expression [ ASC | DESC ];

Learn ReactJs, React Native from akashmittal.com