You want to add
ORDER BY rank DESC
into your SQL query to display the rank numbers. You can also change DESC to ASC to reorder.
EDIT
I see that you already have an order, so just edit it like this.
You must add it with a comma before this:
ORDER BY column1 DESC , column2 DESC
source
share