How to do sorting by price? From cheap to expensive, etc?

How to do sorting of products by price? The algorithm and logic?
April 4th 20 at 00:57
1 answer
April 4th 20 at 00:59
Solution
Select items from DB sorting on the column prices.
SELECT * FROM `product_list` ORDER BY `product_list`.`cost` ASC
Thanks for the reply, did not know what PhpMyAdmin is visible in the sort code. Thank you - Janess commented on April 4th 20 at 01:02
@Porter_Hilpert, I wish you health, comrade Captain Obvious! ;)

@Janess, It's not PhpMyAdmin, this is standard SQL which would not be popular if it had no built-in tools to meet common needs. - Clemmie96 commented on April 4th 20 at 01:05

Find more questions by tags MySQL