title: How can I order by 'votes' in CakePHP?
body: <p>I'm using CakePHP for a CMS/web service to power an iPhone app.  I'm wondering how I would go about ordering my .find() method so that I can order by the "count" of some external models?</p>
  
  <p>For example:
  A <strong>video</strong> object is associated with <strong>votes</strong>.  So there are multiple Vote rows (with user_id and video_id) for a single Video row.</p>
  
  <pre><code>$videos = $this-&gt;Video-&gt;find('list', array( &lt;&lt;orderby stuff&gt;&gt; ));
  </code></pre>
  
  <p>How can I change the orderby clause so that it returns the 25 most popular videos by <strong>votes</strong>?</p>