MYSQL order by both Ascending and Descending sorting MYSQL order by both Ascending and Descending sorting sql sql

MYSQL order by both Ascending and Descending sorting


You can do that in this way:

ORDER BY `products`.`product_category_id` DESC ,`naam` ASC

Have a look at ORDER BY Optimization


I don't understand what the meaning of ordering with the same column ASC and DESC in the same ORDER BY, but this how you can do it: naam DESC, naam ASC like so:

ORDER BY `product_category_id` DESC,`naam` DESC, `naam` ASC