title: How to sort model in Ember.js?
body: <p>I use a model in Ember.js like this:</p>
  
  <pre><code>App.SomethingRoute = Ember.Route.extend({
    model: function()
    {
        return App.MyData.find();
    }
  });
  </code></pre>
  
  <p>It receives data from MyData. In my data i have a field called "NAME". I would like to display data from MyData in ascendant order by NAME. </p>
  
  <p>I've added a controller (thx. Toran, intuitive) like this:</p>
  
  <pre><code>App.SomethingController = Ember.ArrayController.extend({
    sortProperties: ['NAME'],
    sortAscending: true
  });
  </code></pre>
  
  <p>But my template that is like this:</p>
  
  <pre><code>{{#each model}}
   {{NAME}}
  {{/each}}
  </code></pre>
  
  <p>Still shows unordered list. How to make it right?</p>