title: Meteor.js: Understanding sort parameters within a find{} method
body: <p>I am doing exercises in the book "Getting Started With Meteor.js Javascript Framework" and 
  there is a section where a template called categories is created, then a {#each} loop thumbs through a collection.This is done with the intent of printing the results to the screen. This works and the code is below.</p>
  
  <pre><code>&lt;template name ="categories"&gt;
  
      &lt;div class ="title"&gt;my stuff&lt;/div&gt;
  
      &lt;div id='categories'&gt;
          {{#each lists}}
  
          &lt;div id="category"&gt;
  
              {{Category}}
  
          &lt;/div&gt;
  
          {{/each}}
      &lt;/div&gt;
  
  &lt;/template&gt;
  </code></pre>
  
  <p><strong>My question is this:</strong></p>
  
  <p>In the code below the sort parameter doesn't seem to do anything. I am curious what it is supposed to be doing. I understand that theoretically it's suppose to "sort", but when I play with the parameters nothing changes. I looked it up in the meteor documentation and I couldn't figure it out. I am trying to modify the code so that it so that it sorts in a different order. This way I can see results and get a real understanding of how <strong>{sort:</strong>  works. I tried modifying the <strong>{sort: {Category: 1}})</strong> to <strong>{sort: {Category: -1}})</strong> as well as <strong>{sort: {Category: 2}})</strong> and it's always the same result. </p>
  
  <pre><code>  Template.categories.lists = function() {
      return lists.find({}, {sort: {Category: 1}});  // Works
  
    /* return lists.find({}); */                     // Works just the same
  
    }
  </code></pre>
  
  <p>The Collections are as follows:</p>
  
  <pre><code>lists.insert({Category:"DVDs", items: [{Name:"Mission Impossible" ,Owner:"me",LentTo:"Alice"}]});
  
  lists.insert({Category:"Tools", items: [{Name:"Linear Compression Wrench",Owner:"me",LentTo: "STEVE"}]});
  </code></pre>