Home >Backend Development >PHP Tutorial >PHP, what is the fastest way to sort articles based on the number of comments counted?
Currently, it is taking out all the data and sorting it again, which is very slow. And now it requires paging.
Is there a better way without considering the field of adding the total number of comments? Can native sql statements be completed directly?