title: mongodb rank and get most chosen
body: <p>Suppose I have the following datas in my collection.</p>
  <pre><code>{votedid:&quot;60dc516f44b8d2c02be2e6d7&quot;,voter:&quot;bla bla bla - doesn't matter&quot;}
  {votedid:&quot;60dc516f44b8d2c02be2e6d8&quot;,voter:&quot;bla bla bla - doesn't matter&quot;}
  {votedid:&quot;60dc516f44b8d2c02be2e6d8&quot;,voter:&quot;bla bla bla - doesn't matter&quot;}
  {votedid:&quot;60dc516f44b8d2c02be2e6d7&quot;,voter:&quot;bla bla bla - doesn't matter&quot;}
  {votedid:&quot;60dc516f44b8d2c02be2e6d8&quot;,voter:&quot;bla bla bla - doesn't matter&quot;}
  {votedid:&quot;60dc516f44b8d2c02be2e6d2&quot;,voter:&quot;bla bla bla - doesn't matter&quot;}
  {votedid:&quot;60dc516f44b8d2c02be2e6d1&quot;,voter:&quot;bla bla bla - doesn't matter&quot;}
  </code></pre>
  <p>I need to rank those datas depending on votedid section, and get the 2 most voted ones. I also need,how many times they are voted.</p>