tires Posted July 13, 2021 Posted July 13, 2021 Hi! I want to sort pages by the number of comments that where made to a page. $mypages= $pages->find("template=mytemplate, sort=mycomments, limit=10"); What is the best way?
netcarver Posted July 13, 2021 Posted July 13, 2021 @tires Have you tried using the selector field's .count property? I haven't tried it for sorting, but it may work. 1
tires Posted July 13, 2021 Author Posted July 13, 2021 That's easy! Thanks a lot! $mypages= $pages->find("template=mytemplate, sort=mycomments.count, limit=10"); 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now