Check out example codes for "sql query for displaying age from oldest to youngest". It will help you in understanding the concepts better.
Code Example 1
//Oldest to youngest SELECT * FROM table_name ORDER BY age DESC; //Youngest to oldest SELECT * FROM table_name ORDER BY age ASC;
Learn ReactJs, React Native from akashmittal.com