Check out example codes for "sql reverse order of results". It will help you in understanding the concepts better.

Code Example 1

SELECT q.* 
    FROM (SELECT TOP 3 * 
              FROM table 
              ORDER BY id DESC) q
    ORDER BY q.id ASC

Learn ReactJs, React Native from akashmittal.com