E
E
Evgeny Petrov2018-04-04 11:50:57
PHP
Evgeny Petrov, 2018-04-04 11:50:57

How to sort by price?

There is a database in which there are about 40,000 products.
What is the best way to implement sorting in ascending and descending prices:
1. Immediately pull out the sorted array with a
query to the database 2. Sort with usort

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2018-04-04
@borgore

standard ORDER BY ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question