mysql sort ascending order code example
Example 1: mysql order
SELECT column_name(s) FROM table_name ORDER BY column_name(s) ASC|DESC
Example 2: sort by mysql
SELECT * FROM table_name ORDER BY col1 ASC; -- ASCending is default
SELECT * FROM table_name ORDER BY col1 DESC; -- DESCending
SELECT * FROM table_name ORDER BY col1 DESC, col2 ASC; -- col1 DESC then col2 ASC