title: sorting values of a hash object in ngRepeat - angularJS
body: <p>I have an object like this:</p>
  
  <pre><code>$scope.phones = new Object();
  $scope.phones['id1'] = {
      "name":"Phone Name1",
      "dateReleased":"2012-1-09 15:48:24"
  };
  $scope.phones['id2'] = {
      "name": "Phone Name2",
      "dateReleased":"2012-3-12 15:32:11"
  };
  $scope.phones['id3'] = {
      "name": "Phone Name3",
      "dateReleased":"2012-2-10 13:53:32"
  };
  </code></pre>
  
  <p>I'm displaying this using ngRepeat. I'm not able to order by <code>dateReleased</code>. Also, ordering in reverse isn't working. My ngRepeat looks this:</p>
  
  <pre><code>&lt;li ng-repeat="phone in phones | orderBy:dateReleased:true"&gt;
      &lt;p&gt;{{phone.name}}&lt;/p&gt;
      &lt;p&gt;{{phone.dateReleased}}&lt;/p&gt;
  &lt;/li&gt;
  </code></pre>