I did not find any built-in solution, but if you are willing to dive in deeper here is my solution with a few workarounds:
I used knex, which helps you built your own database queries. You can access it via strapi.db.connection. With this I queried the entity ids in the correct order based on their score (in my case it was comment count and votes added together). Then used these ids with the built-in strapi query, so I don’t have to populate everything on my own with knex.
And as a final step I had to order the final result coming from the strapi query manually.
Here’s my knex query:
Hope this helps ![]()
