SQL update sort order column code example
Example 1: sql alter table order by
ALTER TABLE tablename ORDER BY columnname ASC;.
Example 2: sql order columns
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