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?