title: Calculate skip value for given record for sorted paging
body: <p>I'm trying to calculate the skip value for a given record in a mongo db collection using the php driver. So taking a given record, find out the index of that record within the entire collection. Is this possible?</p>
  
  <p>Currently I'm selecting all records and manually doing an index of on the array of results.</p>