I have two tables, one user
and one visitas
. In the visitas
table I keep the ID of the user who was visited and who visited.
How to make a query where I leave the users in order of more number of visits? I do not keep the total anywhere.
Any tips?