Order list by popularity

I have a hashtag component with a count of the amount of posts with attached to the hashtag. I would like to create a trending hashtag list component. Is there a way to order a list based on popularity?

I’m thinking something like if you have a relationship between hashtags and the posts then you can list the hashtags and sort by count[poststhathavethishashtag] filtered on date[post] > (now - 24hours)

1 Like

hi is there a way you can show me examples or do you have a tutorial?