If I have a feed of content each with a vote count. Any ideas on a basic 
sort mechanism to display this?

Like Reddit, I'd like:

* the content with the most votes to be toward the top
* but I also don't want old content to remain at the top (e.g. if only 
sorting by votes, the feed won't change often)
* but I also want to give new content some airtime toward the top (I don't 
want a separate 'new' page like Reddit does)


Here's what I'm working with:

$this->paginate = array(
'limit'=>30,
'order'=>array(
'Story.created'=>'desc',
'Story.votes'=>'desc'
)); 

Any ideas?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to