I have a table with 2 fields DATE and IMPORTANCE. Now I want to sort both these fields in DESCENDING ORDER so that the rows are ordered by IMPORTANCE for EACH DATE. For ex
SELECT * FROM yourtable ORDER BY `DATE` DESC, `IMPORTANCE` DESC
You can add as many fields to ORDER BY as you want.
That'd be something like:
SELECT * FROM table ORDER BY `date` DESC, `importance` DESC