Hi,

I use http://pastie.org/918145 to get categories, ordered by the
categories with the most articles - the same thing can be applied to
your situation without too much fuss.

hth

Jon

On 13 April 2010 18:40, mpeshev <[email protected]> wrote:
> Hi,
>
> I have a relationship 1:m for news with comments. I try to sort the
> news by comments count.
>
> I am able to filter all the news in many ways, also to get the $this-
>>News->Comment->find('count') for the comments count. How could I
> extract the 10 most commented news after all?
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>



-- 
jon bennett - www.jben.net - blog.jben.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to