I have a table called “reports”
it looks like:
user_id | report_post
1 2
2 2
3 2
4 10
Now I want to list the first three entries at first, cause the reported post id “2” is 3 times in this table… i want so sort them by the maximum of entries.
Hope you guys understand… thanks alot
—-edit——
my output have to look like this
report_post | entries
2 3
10 1
1 Answer