Sorting by Likes

Hey everyone!

For my community section I have added a like feature, that works by adding the current user to a list called userlikes.
But now in order to sort the posts by likes I need to create a need data field called post that counts the amount of users in the list and uses that as the count. How would it be possible to say Likes = List of userlikes:count? and where would I have to do this?
Thanks alot :slight_smile:

Ola, @navidmani1 ! Acredito que daria para fazer nessa tabela de superlikes, você ordenar por likes, como vc faz ordenação de tabela quando procura em banco de dados por nome e ou por email de cima pra baixo e tendo a possibilidade de criar ordens de apresentação.