title: Query from minimongo of large number of records stucks and hangs browser
body: <p>I am building a page for admin in <strong>angular-meteor</strong>.</p>
  
  <p>I have <strong>published</strong> all the records from a collection: "<strong>posts</strong>" and have taken the <strong>subscription</strong> of all the records on front end.</p>
  
  <pre><code>$meteor.subscribe('posts');
  </code></pre>
  
  <p>In the controller, if I select the cursors of all records from minimongo it works fine like:</p>
  
  <pre><code>$scope.posts = $meteor.collection(Posts);
  </code></pre>
  
  <p>But I want to display pagination, so for that I want limited records at a time like:</p>
  
  <pre><code>$scope.posts = $meteor.collection(function(){
  
          return Posts.find(
  
              {}, 
              {
                  sort:   {'cDate.timestamp': -1},
                  limit:  10
              }
          );
      });
  </code></pre>
  
  <p>It stucks with the query in minimongo. And the browser hangs. </p>
  
  <p>"<strong>posts</strong>" collection contains only 500 records. It was working fine when I had 200 records.</p>
  
  <p>Can anyone give me an idea whats wrong with my code and concepts?</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>Okay! It worked fine when I commented the <strong>$sort</strong> line from query like this:</p>
  
  <pre><code>$scope.posts = $meteor.collection(function(){
  
              return Posts.find(
  
                  {}, 
                  {
                      //sort:   {'cDate.timestamp': -1},
                      limit:  10
                  }
              );
          });
  </code></pre>
  
  <p>But I need to sort the records. So what should I do now?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Also tried adding index to the sort attribute like this:</p>
  
  <pre><code>db.Posts.ensureIndex({"cDate.timestamp": 1})
  </code></pre>
  
  <p>Still same issue.</p>