title: ng-repeat orderBy object
body: <p>UPDATE:</p>
  
  <p>on my html page I'm using as the following:</p>
  
  <pre><code>&lt;section ng-repeat="template in templates"&gt;
          &lt;ng-include src="template"&gt;&lt;/ng-include&gt;
      &lt;/section&gt;
  </code></pre>
  
  <p>but the problem is that I need specific file in certain order so is there a way I can control the way order is rendering?</p>
  
  <p>I'm trying to orderby an object how do I do that and I have searched online before posting it here.</p>
  
  <pre><code>function MyCtrl($scope) {
      $scope.templates = {
          template_address: "../template/address.html",
          template_book: "../template/book.html",
          template_create: "../template/create.html" 
      };
  
  
  
  &lt;div ng-app ng-controller="MyCtrl"&gt;
      &lt;ul&gt;
          &lt;li ng-repeat="(name, path) in templates"&gt;{{name}}: {{path}}&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/abuhamzah/6fbpdm9m/" rel="noreferrer">http://jsfiddle.net/abuhamzah/6fbpdm9m/</a></p>